Skip to content

Commit

Permalink
Log SuggestGasPrice during test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Feb 25, 2025
1 parent 06777fd commit 37e79d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/fixture/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ func SendEthTransaction(tc tests.TestContext, ethClient ethclient.Client, signed
func SuggestGasPrice(tc tests.TestContext, ethClient ethclient.Client) *big.Int {
gasPrice, err := ethClient.SuggestGasPrice(tc.DefaultContext())
require.NoError(tc, err)

tc.Log().Info("suggested gas price",
zap.Stringer("price", gasPrice),
)

// Double the suggested gas price to maximize the chances of
// acceptance. Maybe this can be revisited pending resolution of
// https://github.com/ava-labs/coreth/issues/314.
Expand Down

0 comments on commit 37e79d4

Please sign in to comment.