interop: return struct pointers where needed

`Transaction`, `Block` and `Contract` are represented as
`Array`s in VM, so we must return pointers.

Revert a1f98f92.
This commit is contained in:
Evgenii Stratonikov 2020-09-08 13:41:47 +03:00
parent 25f8545cdf
commit 37f7363386
5 changed files with 71 additions and 80 deletions

View file

@ -9,8 +9,8 @@ import (
// execution context. It never changes in a single execution, no matter how deep
// this execution goes. This function uses
// `System.Runtime.GetScriptContainer` syscall.
func GetScriptContainer() blockchain.Transaction {
return blockchain.Transaction{}
func GetScriptContainer() *blockchain.Transaction {
return &blockchain.Transaction{}
}
// GetExecutingScriptHash returns script hash (160 bit in BE form represented