diff --git a/lib/runtime/wazero/imports_test.go b/lib/runtime/wazero/imports_test.go index 245afcc847..2e576c8bfb 100644 --- a/lib/runtime/wazero/imports_test.go +++ b/lib/runtime/wazero/imports_test.go @@ -23,6 +23,7 @@ import ( "github.com/ChainSafe/gossamer/lib/crypto/sr25519" "github.com/ChainSafe/gossamer/lib/keystore" "github.com/ChainSafe/gossamer/lib/runtime" + "github.com/ChainSafe/gossamer/lib/runtime/allocator" "github.com/ChainSafe/gossamer/lib/runtime/storage" "github.com/ChainSafe/gossamer/pkg/scale" "github.com/ChainSafe/gossamer/pkg/trie" @@ -873,8 +874,10 @@ func Test_ext_misc_runtime_version_version_1(t *testing.T) { } } - data := bytes + allocator := allocator.NewFreeingBumpHeapAllocator(0) + inst.Context.Allocator = allocator + data := bytes dataLength := uint32(len(data)) inputPtr, err := inst.Context.Allocator.Allocate(inst.Module.Memory(), dataLength) if err != nil {