Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek committed Oct 20, 2023
1 parent a8b094b commit efee37a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions integration-tests/contracts/ibc/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package ibc

import (
_ "embed"
"encoding/json"

"github.com/CoreumFoundation/coreum-tools/pkg/must"
)

// Smart contracts bytecode.
Expand All @@ -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{}{}))
7 changes: 3 additions & 4 deletions integration-tests/ibc/wasm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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",
},
Expand Down Expand Up @@ -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",
},
)
Expand All @@ -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",
},
)
Expand Down

0 comments on commit efee37a

Please sign in to comment.