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:
Evgenii Stratonikov 2020-11-19 18:02:21 +03:00
parent 4de233b339
commit 42ae226f9e
4 changed files with 40 additions and 121 deletions

View file

@ -454,7 +454,7 @@ func getTestContractState() (*state.Contract, *state.Contract) {
{
Name: "justReturn",
Offset: justRetOff,
ReturnType: smartcontract.IntegerType,
ReturnType: smartcontract.VoidType,
},
{
Name: manifest.MethodVerify,