Skip to content

Commit

Permalink
eth/gasprice: adapt Optimism test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianst committed Aug 14, 2024
1 parent 75b673d commit 9f481ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/gasprice/optimism-gasprice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func newOpTestBackend(t *testing.T, txs []testTxData) *opTestBackend {

func TestSuggestOptimismPriorityFee(t *testing.T) {
minSuggestion := new(big.Int).SetUint64(1e8 * params.Wei)
var cases = []struct {
cases := []struct {
txdata []testTxData
want *big.Int
}{
Expand All @@ -136,7 +136,7 @@ func TestSuggestOptimismPriorityFee(t *testing.T) {
}
for i, c := range cases {
backend := newOpTestBackend(t, c.txdata)
oracle := NewOracle(backend, Config{MinSuggestedPriorityFee: minSuggestion})
oracle := NewOracle(backend, Config{MinSuggestedPriorityFee: minSuggestion}, big.NewInt(params.GWei))
got := oracle.SuggestOptimismPriorityFee(context.Background(), backend.block.Header(), backend.block.Hash())
if got.Cmp(c.want) != 0 {
t.Errorf("Gas price mismatch for test case %d: want %d, got %d", i, c.want, got)
Expand Down

0 comments on commit 9f481ea

Please sign in to comment.