Skip to content

Commit

Permalink
Include bidder addr in bid validator errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson committed Dec 16, 2024
1 parent 5e408da commit a90a817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timeboost/bid_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ func (bv *BidValidator) validateBid(
return nil, err
}
if depositBal.Cmp(new(big.Int)) == 0 {
return nil, ErrNotDepositor
return nil, errors.Wrapf(ErrNotDepositor, "bidder %s", bidder.Hex())
}
if depositBal.Cmp(bid.Amount) < 0 {
return nil, errors.Wrapf(ErrInsufficientBalance, "onchain balance %#x, bid amount %#x", depositBal, bid.Amount)
return nil, errors.Wrapf(ErrInsufficientBalance, "bidder %s, onchain balance %#x, bid amount %#x", bidder.Hex(), depositBal, bid.Amount)
}
vb := &ValidatedBid{
ExpressLaneController: bid.ExpressLaneController,
Expand Down

0 comments on commit a90a817

Please sign in to comment.