Skip to content

Commit

Permalink
Fix auth assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
udose-everyday committed Oct 16, 2024
1 parent a1499ca commit 04643c0
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions contracts/multisig/src/tests/update_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ fn update_proposal_works() {

// it's not actually a new wasm hash, but we need to use it to test the update proposal
let new_wasm_hash = utils::multisig_wasm_hash(&env);
multisig.create_update_proposal(
&member1,
&String::from_str(&env, "update"),
&String::from_str(&env, "description"),
&new_wasm_hash,
&None,
);
let title = String::from_str(&env, "update");
let description = String::from_str(&env, "description");
multisig.create_update_proposal(&member1, &title, &description, &new_wasm_hash, &None);
assert_eq!(
env.auths(),
std::vec![(
Expand All @@ -70,7 +66,14 @@ fn update_proposal_works() {
// Name of the called function
Symbol::new(&env, "create_update_proposal"),
// Arguments used to call `create_transaction_proposal`
(&member1.clone(), new_wasm_hash, None::<u64>).into_val(&env),
(
&member1.clone(),
&title.clone(),
&description.clone(),
new_wasm_hash,
None::<u64>
)
.into_val(&env),
)),
sub_invocations: std::vec![]
}
Expand Down

0 comments on commit 04643c0

Please sign in to comment.