Skip to content

Commit

Permalink
fix: add Index flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kynea0b committed Aug 25, 2023
1 parent a1e14a7 commit 31d0bab
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions x/wasmplus/keeper/msg_server_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,34 @@ func TestStoreAndInstantiateContract(t *testing.T) {
"address can instantiate a contract when permission is everybody": {
addr: myAddress.String(),
permission: &wasmtypes.AllowEverybody,
expEvents: []abci.Event{{
Type: "store_code",
Attributes: []abci.EventAttribute{abci.EventAttribute{
Key: []byte("code_checksum"),
Value: []byte("2843664c3b6c1de8bdeca672267c508aeb79bb947c87f75d8053f971d8658c89"),
Index: false,
}, {
Key: []byte("code_id"),
Value: []byte("1"),
Index: false,
},
expEvents: []abci.Event{
{
Type: "store_code",
Attributes: []abci.EventAttribute{
{
Key: []byte("code_checksum"),
Value: []byte("2843664c3b6c1de8bdeca672267c508aeb79bb947c87f75d8053f971d8658c89"),
Index: false,
}, {
Key: []byte("code_id"),
Value: []byte("1"),
Index: false,
},
},
},
}, createMsgEvent(myAddress),
createMsgEvent(myAddress),
{
Type: "instantiate",
Attributes: []abci.EventAttribute{abci.EventAttribute{
Key: []byte("_contract_address"),
Value: []byte("link14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sgf2vn8"),
Index: false,
}, {
Key: []byte("code_id"),
Value: []byte("1"),
Index: false,
},
Attributes: []abci.EventAttribute{
{
Key: []byte("_contract_address"),
Value: []byte("link14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sgf2vn8"),
Index: false,
}, {
Key: []byte("code_id"),
Value: []byte("1"),
Index: false,
},
},
},
},
Expand Down Expand Up @@ -112,10 +116,12 @@ func createMsgEvent(sender sdk.AccAddress) abci.Event {
{
Key: []byte("module"),
Value: []byte("wasm"),
Index: false,
},
{
Key: []byte("sender"),
Value: []byte(sender.String()),
Index: false,
},
},
}
Expand Down

0 comments on commit 31d0bab

Please sign in to comment.