From efee37a721b3c656f52d9b11a4204fb018e055de Mon Sep 17 00:00:00 2001 From: Wojtek Date: Fri, 20 Oct 2023 12:53:28 +0200 Subject: [PATCH] fix --- integration-tests/contracts/ibc/contract.go | 6 ++++++ integration-tests/ibc/wasm_test.go | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/integration-tests/contracts/ibc/contract.go b/integration-tests/contracts/ibc/contract.go index b4f244d25..9a4d847d9 100644 --- a/integration-tests/contracts/ibc/contract.go +++ b/integration-tests/contracts/ibc/contract.go @@ -4,6 +4,9 @@ package ibc import ( _ "embed" + "encoding/json" + + "github.com/CoreumFoundation/coreum-tools/pkg/must" ) // Smart contracts bytecode. @@ -13,3 +16,6 @@ var ( //go:embed ibc-call/artifacts/ibc_call.wasm IBCCallWASM []byte ) + +// EmptyPayload represents empty payload. +var EmptyPayload = must.Bytes(json.Marshal(struct{}{})) diff --git a/integration-tests/ibc/wasm_test.go b/integration-tests/ibc/wasm_test.go index 185f30143..7f9c501e8 100644 --- a/integration-tests/ibc/wasm_test.go +++ b/integration-tests/ibc/wasm_test.go @@ -23,7 +23,6 @@ import ( "github.com/CoreumFoundation/coreum-tools/pkg/retry" integrationtests "github.com/CoreumFoundation/coreum/v3/integration-tests" ibcwasm "github.com/CoreumFoundation/coreum/v3/integration-tests/contracts/ibc" - "github.com/CoreumFoundation/coreum/v3/integration-tests/contracts/modules" "github.com/CoreumFoundation/coreum/v3/testutil/integration" ) @@ -96,7 +95,7 @@ func TestIBCTransferFromSmartContract(t *testing.T) { ibcwasm.IBCTransferWASM, integration.InstantiateConfig{ AccessType: wasmtypes.AccessTypeUnspecified, - Payload: modules.EmptyPayload, + Payload: ibcwasm.EmptyPayload, Amount: sendToOsmosisCoin, Label: "ibc_transfer", }, @@ -195,7 +194,7 @@ func TestIBCCallFromSmartContract(t *testing.T) { integration.InstantiateConfig{ Admin: coreumCaller, AccessType: wasmtypes.AccessTypeUnspecified, - Payload: modules.EmptyPayload, + Payload: ibcwasm.EmptyPayload, Label: "ibc_call", }, ) @@ -209,7 +208,7 @@ func TestIBCCallFromSmartContract(t *testing.T) { integration.InstantiateConfig{ Admin: osmosisCaller, AccessType: wasmtypes.AccessTypeUnspecified, - Payload: modules.EmptyPayload, + Payload: ibcwasm.EmptyPayload, Label: "ibc_call", }, )