From 4004cf84d66251b4c50b8e05ec1cb14850aba935 Mon Sep 17 00:00:00 2001 From: Alok Date: Tue, 9 Jul 2024 21:12:01 +0530 Subject: [PATCH] fix: lint --- p2p/pkg/autodepositor/autodepositor_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/p2p/pkg/autodepositor/autodepositor_test.go b/p2p/pkg/autodepositor/autodepositor_test.go index 04c558cea..8bfb9dbbc 100644 --- a/p2p/pkg/autodepositor/autodepositor_test.go +++ b/p2p/pkg/autodepositor/autodepositor_test.go @@ -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 },