address: rename functions as per #579 comments

Make them more clear to understand.
This commit is contained in:
Roman Khimov 2019-12-25 17:34:18 +03:00
parent 53e6fbbbf9
commit b246653f62
16 changed files with 28 additions and 28 deletions

View file

@ -673,7 +673,7 @@ func (c *codegen) convertBuiltin(expr *ast.CallExpr) {
// contain double quotes that need to be stripped.
addressStr := expr.Args[0].(*ast.BasicLit).Value
addressStr = strings.Replace(addressStr, "\"", "", 2)
uint160, err := address.DecodeUint160(addressStr)
uint160, err := address.StringToUint160(addressStr)
if err != nil {
c.prog.Err = err
return