mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
contract: Apply linter suggestions.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user