Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/refactor-statekey' into refactor…
Browse files Browse the repository at this point in the history
…-statekey
  • Loading branch information
samliok committed Dec 8, 2023
2 parents b6facbc + c879e1c commit cbe1000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/programs/examples/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (t *Token) RunShort(ctx context.Context) error {
return err
}

programIDPtr, err := runtime.WriteBytes(rt.Memory(), programID[:])
programIDPtr, err := newParameterPtr(ctx, programID, rt)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion x/programs/examples/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestTokenProgram(t *testing.T) {
// go test -v -benchmem -run=^$ -bench ^BenchmarkTokenProgram$ github.com/ava-labs/hypersdk/x/programs/examples -memprofile benchvset.mem -cpuprofile benchvset.cpu
func BenchmarkTokenProgram(b *testing.B) {
require := require.New(b)
maxUnits := uint64(40000)
maxUnits := uint64(80000)

cfg, err := runtime.NewConfigBuilder().
WithCompileStrategy(runtime.CompileWasm).
Expand Down

0 comments on commit cbe1000

Please sign in to comment.