Skip to content

Commit

Permalink
fix trimSuffix
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Feb 5, 2024
1 parent 33166dd commit e1df98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolvers/onchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func newIntFromHexQueryParam(uri *url.URL, paramName string) (*big.Int, error) {
return nil, nil
}

stateParam = strings.TrimSuffix(stateParam, "0x")
stateParam = strings.TrimPrefix(stateParam, "0x")
stateBytes, err := hex.DecodeString(stateParam)
if err != nil {
return nil, err
Expand Down

0 comments on commit e1df98f

Please sign in to comment.