native: use proper stack for result
When native method calls other contract result should be put on the stack of current context. With oracles this problem wasn't noticed because of void return type.
This commit is contained in:
parent
4de233b339
commit
42ae226f9e
4 changed files with 40 additions and 121 deletions
|
@ -454,7 +454,7 @@ func getTestContractState() (*state.Contract, *state.Contract) {
|
|||
{
|
||||
Name: "justReturn",
|
||||
Offset: justRetOff,
|
||||
ReturnType: smartcontract.IntegerType,
|
||||
ReturnType: smartcontract.VoidType,
|
||||
},
|
||||
{
|
||||
Name: manifest.MethodVerify,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue