Skip to content

Commit b6f0d9b

Browse files
fix: unchecked err
1 parent 2f64dd9 commit b6f0d9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/loadtest/uniswapv3/pool.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"context"
66
"errors"
7+
"fmt"
78
"github.com/0xPolygon/polygon-cli/bindings/tokens"
89
"github.com/ethereum/go-ethereum/core/types"
910
"math/big"
@@ -262,6 +263,10 @@ func provideLiquidity(ctx context.Context, c *ethclient.Client, tops *bind.Trans
262263
log.Debug().Stringer("tx-hash", tx.Hash()).Uint64("gas-used", receipt.GasUsed).Msg("Transaction mined successfully")
263264
return nil
264265
})
266+
if err != nil {
267+
return fmt.Errorf("unable to confirm receipt for mint transactions: %w", err)
268+
}
269+
265270
// Check that liquidity has been added to the pool.
266271
liquidity, err = poolContract.Liquidity(cops)
267272
if err != nil {

0 commit comments

Comments
 (0)