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
```
This commit is contained in:
Anna Shaleva 2021-12-09 17:51:40 +03:00
parent 7927c8d8f5
commit 73ecbb2fb3

View file

@ -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
}