compiler: move SHA256 from builtins to syscalls

Now it can be processed as a normal syscall.
This commit is contained in:
Anna Shaleva 2020-07-22 16:19:18 +03:00
parent b8d82b49ec
commit 2bbe218547
3 changed files with 2 additions and 3 deletions

View file

@ -1220,8 +1220,6 @@ func (c *codegen) convertBuiltin(expr *ast.CallExpr) {
typ = stackitem.BooleanT
}
c.emitConvert(typ)
case "SHA256":
emit.Syscall(c.prog.BinWriter, "Neo.Crypto.SHA256")
case "AppCall":
c.emitReverse(len(expr.Args))
buf := c.getByteArray(expr.Args[0])