Skip to content

Commit

Permalink
fixed instantiate2 expect test
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jul 18, 2024
1 parent c9e9e9d commit 84246dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contracts/external/cw-admin-factory/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,17 @@ fn test_set_self_admin_instantiate2() {
code_id: dao_dao_core_id,
label: "third".to_string(),
salt: salt.clone(),
expect: Some("wrong".to_string()),
expect: Some(cw_admin_factory.contract_addr.clone()),
},
&[],
&accounts[0],
)
.unwrap_err();

assert_eq!(
err,
RunnerError::ExecuteError {
msg: ContractError::UnexpectedContractAddress {
expected: "wrong".to_string(),
expected: cw_admin_factory.contract_addr.clone(),
actual: actual_addr.to_string(),
}
.to_string()
Expand All @@ -244,5 +243,5 @@ fn addr_canonicalize(prefix: &str, input: &str) -> CanonicalAddr {

fn addr_humanize(prefix: &str, canonical: &CanonicalAddr) -> Addr {
let encoded = encode(prefix, canonical.as_slice().to_base32(), Variant::Bech32).unwrap();
return Addr::unchecked(encoded);
Addr::unchecked(encoded)
}

0 comments on commit 84246dc

Please sign in to comment.