forked from TrueCloudLab/neoneo-go
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:
parent
7927c8d8f5
commit
73ecbb2fb3
1 changed files with 1 additions and 1 deletions
2
pkg/rpc/server/testdata/test_contract.go
vendored
2
pkg/rpc/server/testdata/test_contract.go
vendored
|
@ -23,7 +23,7 @@ func Init() bool {
|
||||||
h := runtime.GetExecutingScriptHash()
|
h := runtime.GetExecutingScriptHash()
|
||||||
amount := totalSupply
|
amount := totalSupply
|
||||||
storage.Put(ctx, h, amount)
|
storage.Put(ctx, h, amount)
|
||||||
runtime.Notify("Transfer", []byte{}, h, amount)
|
runtime.Notify("Transfer", interop.Hash160([]byte{}), h, amount)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue