Skip to content

Commit

Permalink
context: read item key in LE
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov committed Jul 23, 2021
1 parent efb67a0 commit c662cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/smartcontract/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *ParameterContext) UnmarshalJSON(data []byte) error {
}
items := make(map[util.Uint160]*Item, len(pc.Items))
for h := range pc.Items {
u, err := util.Uint160DecodeStringBE(strings.TrimPrefix(h, "0x"))
u, err := util.Uint160DecodeStringLE(strings.TrimPrefix(h, "0x"))
if err != nil {
return err
}
Expand Down

0 comments on commit c662cf9

Please sign in to comment.