Imported from CityOfZion/neo-storm (c0ee185a7cfd2c222fb7b4c8ca19885844d53855).
This commit is contained in:
Anthony De Meulemeester 2018-08-23 10:17:42 +02:00 committed by Roman Khimov
parent b997eeb051
commit f14833893c
4 changed files with 12 additions and 28 deletions

View file

@ -571,6 +571,8 @@ func (c *codegen) convertBuiltin(expr *ast.CallExpr) {
emitOpcode(c.prog, vm.HASH256)
case "Hash160":
emitOpcode(c.prog, vm.HASH160)
case "CompareBytes":
emitOpcode(c.prog, vm.EQUAL)
case "FromAddress":
// We can be sure that this is a ast.BasicLit just containing a simple
// address string. Note that the string returned from calling Value will