diff --git a/pkg/rpc/server/testdata/test_contract.avm b/pkg/rpc/server/testdata/test_contract.avm index 7d3417c3c..b9f78fdc6 100755 Binary files a/pkg/rpc/server/testdata/test_contract.avm and b/pkg/rpc/server/testdata/test_contract.avm differ diff --git a/pkg/rpc/server/testdata/test_contract.go b/pkg/rpc/server/testdata/test_contract.go index a8da7cf8a..9eb87fe4e 100644 --- a/pkg/rpc/server/testdata/test_contract.go +++ b/pkg/rpc/server/testdata/test_contract.go @@ -12,7 +12,7 @@ const ( ) func Main(operation string, args []interface{}) interface{} { - runtime.Notify([]interface{}{"contract call", operation, args}) + runtime.Notify("contract call", operation, args) switch operation { case "Put": ctx := storage.GetContext() @@ -34,7 +34,7 @@ func Main(operation string, args []interface{}) interface{} { return false } amount := storage.Get(ctx, addr).(int) - runtime.Notify([]interface{}{"balanceOf", addr, amount}) + runtime.Notify("balanceOf", addr, amount) return amount case "transfer": ctx := storage.GetContext() @@ -66,7 +66,7 @@ func Main(operation string, args []interface{}) interface{} { toBalance += amount storage.Put(ctx, to, toBalance) - runtime.Notify([]interface{}{"transfer", from, to, amount}) + runtime.Notify("transfer", from, to, amount) return true case "init": @@ -74,7 +74,7 @@ func Main(operation string, args []interface{}) interface{} { h := engine.GetExecutingScriptHash() amount := totalSupply storage.Put(ctx, h, amount) - runtime.Notify([]interface{}{"transfer", []byte{}, h, amount}) + runtime.Notify("transfer", []byte{}, h, amount) return true default: panic("invalid operation")