Skip to content

Commit

Permalink
remove usage of SmartPtr in test
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Apr 24, 2024
1 parent b84d849 commit 739fd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/programs/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 739fd00

Please sign in to comment.