From 73ecbb2fb3da205901bab9d67884b285f206baae Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 9 Dec 2021 17:51:40 +0300 Subject: [PATCH] rpc: adjust helper contract code Compiler forces notification parameters to match the one specified in manifest, and manifest of `test_contract.go` tells that `to` parameter type is hash160: ``` event 'Transfer' should have 'Hash160' as type of 1 parameter, got: ByteArray ``` --- pkg/rpc/server/testdata/test_contract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/server/testdata/test_contract.go b/pkg/rpc/server/testdata/test_contract.go index 11f9f9a46..e6b98ab57 100644 --- a/pkg/rpc/server/testdata/test_contract.go +++ b/pkg/rpc/server/testdata/test_contract.go @@ -23,7 +23,7 @@ func Init() bool { h := runtime.GetExecutingScriptHash() amount := totalSupply storage.Put(ctx, h, amount) - runtime.Notify("Transfer", []byte{}, h, amount) + runtime.Notify("Transfer", interop.Hash160([]byte{}), h, amount) return true }