Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Nov 25, 2024
1 parent 066ebaa commit a19a6e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ func (c *Client) CalculateBaseFee(
return nil, fmt.Errorf("failed to fetch parent gas excess: %w", err)
}
}
if currentTimestamp < l2Head.Time {
currentTimestamp = l2Head.Time + 1
}
baseFeeInfo, err = c.TaikoL2.CalculateBaseFee(
&bind.CallOpts{BlockNumber: l2Head.Number, Context: ctx},
*baseFeeConfig,
Expand Down

0 comments on commit a19a6e5

Please sign in to comment.