Skip to content

Commit

Permalink
chore: fix Test_ext_misc_runtime_version_version_1
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Mar 18, 2024
1 parent 425f475 commit cc16ed5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/runtime/wazero/imports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cc16ed5

Please sign in to comment.