From cfa0c6e0ad6e332027b7393a233143e4e0b49461 Mon Sep 17 00:00:00 2001 From: alexvanin Date: Fri, 26 Jun 2020 14:38:23 +0300 Subject: [PATCH] cli: update hardcoded script hashes for neo and gas contracts Use LittleEndian as preferred way to encode script-hashes --- pkg/rpc/client/nep5.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rpc/client/nep5.go b/pkg/rpc/client/nep5.go index 1813333e7..15be912af 100644 --- a/pkg/rpc/client/nep5.go +++ b/pkg/rpc/client/nep5.go @@ -18,9 +18,9 @@ import ( var ( // NeoContractHash is a hash of the NEO native contract. - NeoContractHash, _ = util.Uint160DecodeStringBE("3b7d3711c6f0ccf9b1dca903d1bfa1d896f1238c") + NeoContractHash, _ = util.Uint160DecodeStringLE("9bde8f209c88dd0e7ca3bf0af0f476cdd8207789") // GasContractHash is a hash of the GAS native contract. - GasContractHash, _ = util.Uint160DecodeStringBE("897720d8cd76f4f00abfa37c0edd889c208fde9b") + GasContractHash, _ = util.Uint160DecodeStringLE("8c23f196d8a1bfd103a9dcb1f9ccf0c611377d3b") ) // NEP5Decimals invokes `decimals` NEP5 method on a specified contract.