File tree Expand file tree Collapse file tree 6 files changed +864
-386
lines changed
integration_tests/src/testcases Expand file tree Collapse file tree 6 files changed +864
-386
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ pub fn validate_contract_metadata(
529529 let contract_config_owner = get_contract_config_owner ( deps, contract_addr) ?;
530530 if contract_config_owner != env. contract . address {
531531 return Err ( ContractError :: InvalidContractOwner {
532+ contract : contract_addr. to_string ( ) ,
532533 expected : env. contract . address . to_string ( ) ,
533534 actual : contract_config_owner,
534535 } ) ;
@@ -539,12 +540,14 @@ pub fn validate_contract_metadata(
539540 if let Some ( contract_admin) = contract_info. admin {
540541 if contract_admin != env. contract . address {
541542 return Err ( ContractError :: InvalidContractAdmin {
543+ contract : contract_addr. to_string ( ) ,
542544 expected : env. contract . address . to_string ( ) ,
543545 actual : contract_admin. to_string ( ) ,
544546 } ) ;
545547 }
546548 } else {
547549 return Err ( ContractError :: InvalidContractAdmin {
550+ contract : contract_addr. to_string ( ) ,
548551 expected : env. contract . address . to_string ( ) ,
549552 actual : "None" . to_string ( ) ,
550553 } ) ;
Original file line number Diff line number Diff line change @@ -1160,6 +1160,7 @@ fn test_validate_contract_metadata_wrong_owner() {
11601160 assert_eq ! (
11611161 error,
11621162 drop_staking_base:: error:: factory:: ContractError :: InvalidContractOwner {
1163+ contract: String :: from( contract_addr) ,
11631164 expected: "cosmos2contract" . to_string( ) ,
11641165 actual: "wrong_owner_address" . to_string( )
11651166 }
@@ -1191,6 +1192,7 @@ fn test_validate_contract_metadata_wrong_admin() {
11911192 assert_eq ! (
11921193 error,
11931194 drop_staking_base:: error:: factory:: ContractError :: InvalidContractAdmin {
1195+ contract: String :: from( contract_addr) ,
11941196 expected: "cosmos2contract" . to_string( ) ,
11951197 actual: "wrong_contract_admin" . to_string( )
11961198 }
@@ -1222,6 +1224,7 @@ fn test_validate_contract_metadata_empty_admin() {
12221224 assert_eq ! (
12231225 error,
12241226 drop_staking_base:: error:: factory:: ContractError :: InvalidContractAdmin {
1227+ contract: String :: from( contract_addr) ,
12251228 expected: "cosmos2contract" . to_string( ) ,
12261229 actual: "None" . to_string( )
12271230 }
You can’t perform that action at this time.
0 commit comments