chore: change CompareBytes to EqualBytes (CityOfZion/neo-storm#22)

* chore: change CompareBytes to EqualBytes

* chore: remove trailing spaces

* chore: rename EqualBytes to Equals

Imported from CityOfZion/neo-storm (da16e967d9631e132488731a42966bccb5ad7f30).
This commit is contained in:
Jeroen Peeters 2018-08-23 19:44:17 +02:00 committed by Roman Khimov
parent f14833893c
commit df173c295d
5 changed files with 6 additions and 120 deletions

View file

@ -571,7 +571,7 @@ func (c *codegen) convertBuiltin(expr *ast.CallExpr) {
emitOpcode(c.prog, vm.HASH256)
case "Hash160":
emitOpcode(c.prog, vm.HASH160)
case "CompareBytes":
case "Equals":
emitOpcode(c.prog, vm.EQUAL)
case "FromAddress":
// We can be sure that this is a ast.BasicLit just containing a simple