Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Jan 6, 2024
1 parent 753dede commit afd8762
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/core/app/src/action_handler/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mod tests {
// Build the transaction.
let fvk = &test_keys::FULL_VIEWING_KEY;
let sk = &test_keys::SPEND_KEY;
let auth_data = plan.authorize(OsRng, sk);
let auth_data = plan.authorize(OsRng, sk)?;
let witness_data = WitnessData {
anchor: sct.root(),
state_commitment_proofs: plan
Expand Down Expand Up @@ -233,7 +233,7 @@ mod tests {
// Build the transaction.
let fvk = &test_keys::FULL_VIEWING_KEY;
let sk = &test_keys::SPEND_KEY;
let auth_data = plan.authorize(OsRng, sk);
let auth_data = plan.authorize(OsRng, sk)?;
let witness_data = WitnessData {
anchor: sct.root(),
state_commitment_proofs: plan
Expand Down
4 changes: 2 additions & 2 deletions crates/core/transaction/src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ mod tests {

println!("{}", serde_json::to_string_pretty(&plan).unwrap());

let plan_effect_hash = plan.effect_hash(fvk);
let plan_effect_hash = plan.effect_hash(fvk).unwrap();

let auth_data = plan.authorize(rng, &sk);
let auth_data = plan.authorize(rng, &sk).unwrap();
let witness_data = WitnessData {
anchor: sct.root(),
state_commitment_proofs: plan
Expand Down
2 changes: 1 addition & 1 deletion crates/custody/src/threshold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ mod test {
pre_authorizations: Vec::new(),
})
.await?;
assert_eq!(plan.effect_hash(&fvk), authorization_data.effect_hash);
assert_eq!(plan.effect_hash(&fvk)?, authorization_data.effect_hash);
// The transaction plan only has spends
for (randomizer, sig) in plan
.spend_plans()
Expand Down

0 comments on commit afd8762

Please sign in to comment.