Skip to content

Commit

Permalink
fix: reflect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
da1suk8 committed Aug 18, 2023
1 parent 5817116 commit a300e47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/wasm/keeper/msg_server_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ func TestInstantiateContract2(t *testing.T) {
return
}

var instantiateResponse types.MsgInstantiateContractResponse
require.NoError(t, wasmApp.AppCodec().Unmarshal(rsp.Data, &instantiateResponse))

// check event
events := rsp.Events
assert.Equal(t, 2, len(events))
Expand All @@ -217,7 +220,7 @@ func TestInstantiateContract2(t *testing.T) {
assert.Equal(t, "instantiate", events[1].Type)
assert.Equal(t, 2, len(events[1].Attributes))
assert.Equal(t, "_contract_address", string(events[1].Attributes[0].Key))
assert.Contains(t, string(rsp.Data), string(events[1].Attributes[0].Value))
assert.Equal(t, instantiateResponse.Address, string(events[1].Attributes[0].Value))
assert.Equal(t, "code_id", string(events[1].Attributes[1].Key))
assert.Equal(t, "1", string(events[1].Attributes[1].Value))

Expand Down

0 comments on commit a300e47

Please sign in to comment.