From a300e47d784912e9f49372164e9ef146fcbb2e25 Mon Sep 17 00:00:00 2001 From: Daisuke Iuchi <42408108+da1suk8@users.noreply.github.com> Date: Fri, 18 Aug 2023 13:37:55 +0900 Subject: [PATCH] fix: reflect comment --- x/wasm/keeper/msg_server_integration_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/wasm/keeper/msg_server_integration_test.go b/x/wasm/keeper/msg_server_integration_test.go index dbaba45acc..1cfa7535c3 100644 --- a/x/wasm/keeper/msg_server_integration_test.go +++ b/x/wasm/keeper/msg_server_integration_test.go @@ -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)) @@ -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))