mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-27 15:42:54 +00:00
rpc: fix invocations of contracts using hash160
ERROR Error encountered with rpc request {"error": "expected string size of 40 got 42",...
This commit is contained in:
parent
d9a83373ed
commit
c8f4eee5f4
1 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,9 @@ func (p Param) GetUint160FromHex() (util.Uint160, error) {
|
|||
if err != nil {
|
||||
return util.Uint160{}, err
|
||||
}
|
||||
if len(s) == 2*util.Uint160Size+2 && s[0] == '0' && s[1] == 'x' {
|
||||
s = s[2:]
|
||||
}
|
||||
|
||||
return util.Uint160DecodeStringLE(s)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue