Skip to content

Commit

Permalink
add BlockHistoryEstimator test for XLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
friedemannf committed Apr 30, 2024
1 parent 69044b0 commit 9680c47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/chains/evm/gas/block_history_estimator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,11 @@ func TestBlockHistoryEstimator_Recalculate_NoEIP1559(t *testing.T) {
cfg.ChainTypeF = string(config.ChainXDai)
bhe.Recalculate(cltest.Head(0))
require.Equal(t, assets.NewWeiI(80), gas.GetGasPrice(bhe))

// And for X Layer
cfg.ChainTypeF = string(config.ChainXLayer)
bhe.Recalculate(cltest.Head(0))
require.Equal(t, assets.NewWeiI(80), gas.GetGasPrice(bhe))
})

t.Run("handles unreasonably large gas prices (larger than a 64 bit int can hold)", func(t *testing.T) {
Expand Down

0 comments on commit 9680c47

Please sign in to comment.