diff --git a/pkg/rpc/wrappers/account_state.go b/pkg/rpc/wrappers/account_state.go index ddc960337..b56981e38 100644 --- a/pkg/rpc/wrappers/account_state.go +++ b/pkg/rpc/wrappers/account_state.go @@ -45,10 +45,7 @@ func NewAccountState(a *state.Account) AccountState { sort.Sort(balances) // reverse scriptHash to be consistent with other client - scriptHash, err := util.Uint160DecodeBytesBE(a.ScriptHash.BytesLE()) - if err != nil { - scriptHash = a.ScriptHash - } + scriptHash := a.ScriptHash.Reverse() return AccountState{ Version: a.Version,