Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathb1 committed Oct 24, 2024
1 parent 3fe6632 commit 4026c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/types/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ func (ath *Authorization) RecoverSigner(data *bytes.Buffer, b []byte) (*libcommo
return nil, errors.New("Failed assertion: auth.nonce < 2**64 - 1")
}
if _, overflow := ath.ChainID.Uint64WithOverflow(); overflow {
return nil, fmt.Errorf("Failed assertion: auth.chain_id < 2**64")
return nil, errors.New("Failed assertion: auth.chain_id < 2**64")
}
if ath.V.GtUint64(1 << 8) {
return nil, fmt.Errorf("Failed assertion: auth.y_parity < 2**8")
return nil, errors.New("Failed assertion: auth.y_parity < 2**8")
}

if ath.V.Eq(u256.Num0) || ath.V.Eq(u256.Num1) {
Expand Down

0 comments on commit 4026c8b

Please sign in to comment.