From 48d3adab9f6cd57eabbc368a294d49efe5299b80 Mon Sep 17 00:00:00 2001 From: parazyd Date: Tue, 7 Mar 2023 12:29:14 +0100 Subject: [PATCH] contract: Apply linter suggestions. --- src/contract/dao/src/dao_client/exec.rs | 2 +- src/contract/dao/src/dao_client/propose.rs | 2 +- src/contract/dao/src/dao_client/vote.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contract/dao/src/dao_client/exec.rs b/src/contract/dao/src/dao_client/exec.rs index 02f3ed97f..2ebacded4 100644 --- a/src/contract/dao/src/dao_client/exec.rs +++ b/src/contract/dao/src/dao_client/exec.rs @@ -177,7 +177,7 @@ impl DaoExecCall { ]; let circuit = ZkCircuit::new(prover_witnesses, exec_zkbin.clone()); - let input_proof = Proof::create(&exec_pk, &[circuit], &public_inputs, &mut OsRng) + let input_proof = Proof::create(exec_pk, &[circuit], &public_inputs, &mut OsRng) .expect("DAO::exec() proving error!)"); proofs.push(input_proof); diff --git a/src/contract/dao/src/dao_client/propose.rs b/src/contract/dao/src/dao_client/propose.rs index f387d10e1..463fbf1b8 100644 --- a/src/contract/dao/src/dao_client/propose.rs +++ b/src/contract/dao/src/dao_client/propose.rs @@ -237,7 +237,7 @@ impl DaoProposeCall { ]; let circuit = ZkCircuit::new(prover_witnesses, main_zkbin.clone()); - let main_proof = Proof::create(&main_pk, &[circuit], &public_inputs, &mut OsRng) + let main_proof = Proof::create(main_pk, &[circuit], &public_inputs, &mut OsRng) .expect("DAO::propose() proving error!"); proofs.push(main_proof); diff --git a/src/contract/dao/src/dao_client/vote.rs b/src/contract/dao/src/dao_client/vote.rs index 5787f3831..dfe2fe90f 100644 --- a/src/contract/dao/src/dao_client/vote.rs +++ b/src/contract/dao/src/dao_client/vote.rs @@ -160,7 +160,7 @@ impl DaoVoteCall { let circuit = ZkCircuit::new(prover_witnesses, burn_zkbin.clone()); debug!(target: "dao", "input_proof Proof::create()"); - let input_proof = Proof::create(&burn_pk, &[circuit], &public_inputs, &mut OsRng) + let input_proof = Proof::create(burn_pk, &[circuit], &public_inputs, &mut OsRng) .expect("DAO::vote() proving error!"); proofs.push(input_proof); @@ -255,7 +255,7 @@ impl DaoVoteCall { let circuit = ZkCircuit::new(prover_witnesses, main_zkbin.clone()); debug!(target: "dao", "main_proof = Proof::create()"); - let main_proof = Proof::create(&main_pk, &[circuit], &public_inputs, &mut OsRng) + let main_proof = Proof::create(main_pk, &[circuit], &public_inputs, &mut OsRng) .expect("DAO::vote() proving error!"); proofs.push(main_proof);