Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Jul 9, 2024
1 parent a233c09 commit 4004cf8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions p2p/pkg/autodepositor/autodepositor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,27 @@ func TestAutoDepositTracker_Start(t *testing.T) {
brContract := &MockBidderRegistryContract{
DepositForWindowsFunc: func(opts *bind.TransactOpts, windows []*big.Int) (*types.Transaction, error) {
for _, window := range windows {
publishBidderRegistered(evtMgr, &brABI, &bidderregistry.BidderregistryBidderRegistered{
err = publishBidderRegistered(evtMgr, &brABI, &bidderregistry.BidderregistryBidderRegistered{
Bidder: addr,
DepositedAmount: amount,
WindowNumber: window,
})
if err != nil {
return nil, err
}
}
return types.NewTransaction(1, common.Address{}, nil, 0, nil, nil), nil
},
WithdrawFromWindowsFunc: func(opts *bind.TransactOpts, windows []*big.Int) (*types.Transaction, error) {
for _, window := range windows {
publishBidderWithdrawal(evtMgr, &brABI, &bidderregistry.BidderregistryBidderWithdrawal{
err = publishBidderWithdrawal(evtMgr, &brABI, &bidderregistry.BidderregistryBidderWithdrawal{
Bidder: addr,
Amount: amount,
Window: window,
})
if err != nil {
return nil, err
}
}
return types.NewTransaction(1, common.Address{}, nil, 0, nil, nil), nil
},
Expand Down

0 comments on commit 4004cf8

Please sign in to comment.