Skip to content

Commit

Permalink
Update x/auth/tx/decoder.go
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Zaremba <[email protected]>
  • Loading branch information
amaury1093 and robert-zaremba authored Jul 26, 2021
1 parent ec1e3aa commit 193f7bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/auth/tx/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func rejectNonADR027TxRaw(txBytes []byte) error {
// All 3 fields of TxRaw have wireType == 2, so their next component
// is a varint, so we can safely call ConsumeVarint here.
// Byte structure: <varint of bytes length><bytes sequence>
// Inner fields are verified in `DefaultTxDecoder`
lengthPrefix, m := protowire.ConsumeVarint(txBytes[m:])
if m < 0 {
return fmt.Errorf("invalid length; %w", protowire.ParseError(m))
Expand Down

0 comments on commit 193f7bb

Please sign in to comment.