From 739fd0070f793cace874814e5e671a4813a8c7e6 Mon Sep 17 00:00:00 2001 From: francois Date: Wed, 24 Apr 2024 21:30:23 +0200 Subject: [PATCH] remove usage of SmartPtr in test --- x/programs/runtime/runtime_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/programs/runtime/runtime_test.go b/x/programs/runtime/runtime_test.go index 0cfc194e0b..01f4415211 100644 --- a/x/programs/runtime/runtime_test.go +++ b/x/programs/runtime/runtime_test.go @@ -99,10 +99,10 @@ func TestCallParams(t *testing.T) { err = runtime.Initialize(ctx, programContext, wasm, maxUnits) require.NoError(err) - arg := 10 + arg := uint32(10) // all arguments are smart-pointers so this is a bit of a hack - resp, err := runtime.Call(ctx, "add", programContext, program.SmartPtr(arg), program.SmartPtr(arg)) + resp, err := runtime.Call(ctx, "add", programContext, arg, arg) require.NoError(err) require.Equal(int64(arg+arg), resp[0])