mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
Merge pull request #1375 from nspcc-dev/compiler/types
Smartcontract types definition in interops
This commit is contained in:
commit
5f22bdfecf
15 changed files with 189 additions and 111 deletions
|
@ -1396,10 +1396,7 @@ func (c *codegen) convertSyscall(expr *ast.CallExpr, api, name string) {
|
|||
c.prog.Err = fmt.Errorf("unknown VM syscall api: %s.%s", api, name)
|
||||
return
|
||||
}
|
||||
emit.Syscall(c.prog.BinWriter, syscall.API)
|
||||
if syscall.ConvertResultToStruct {
|
||||
c.emitConvert(stackitem.StructT)
|
||||
}
|
||||
emit.Syscall(c.prog.BinWriter, syscall)
|
||||
|
||||
// This NOP instruction is basically not needed, but if we do, we have a
|
||||
// one to one matching avm file with neo-python which is very nice for debugging.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue