Skip to content

Commit

Permalink
test(taiko-client): skip TestCheckL1ReorgToSameHeightFork temporari…
Browse files Browse the repository at this point in the history
…ly (#18522)
  • Loading branch information
davidtaikocha authored Nov 25, 2024
1 parent 3c2e943 commit 385fed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions packages/taiko-client/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func (s *DriverTestSuite) TestCheckL1ReorgToLowerFork() {
}

func (s *DriverTestSuite) TestCheckL1ReorgToSameHeightFork() {
s.T().Skip("Skip this test case because of the anvil timestamp issue after rollback.")
var (
testnetL1SnapshotID = s.SetL1Snapshot()
)
Expand Down
5 changes: 0 additions & 5 deletions packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,6 @@ func (c *Client) CalculateBaseFee(
return nil, fmt.Errorf("failed to fetch parent gas excess: %w", err)
}
}
// The time of l1Head should always be greater than that of l2Head.
// Since the block.Time after anvil rollback is smaller than the original one, the timestamp has to be modified here.
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 385fed2

Please sign in to comment.