Skip to content

Commit

Permalink
fix test, remove println!
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Sep 27, 2023
1 parent 8339b70 commit 4bfaab8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/test/evm-apis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("evm_increaseTime", function () {
to: userWallet.address,
value: ethers.utils.parseEther("0.1"),
});
expectedTimestamp += 1; // New transaction will add a second block
expectedTimestamp += 2; // New transaction will add two block

// Assert
const newBlockTimestamp = (await provider.getBlock("latest")).timestamp;
Expand Down
1 change: 0 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ pub fn mine_empty_blocks<S: std::fmt::Debug + ForkSource>(
// we need these to use the unsafeOverrideBlock method in SystemContext.sol
let bootloader_code = node.system_contracts.contacts_for_l2_call();
let (batch_env, mut next_block) = node.create_l1_batch_env(storage.clone());
println!("timestamp {}", next_block.timestamp);
// override the next block's timestamp to match up with interval for subsequent blocks
if i != 0 {
next_block.timestamp = node.current_timestamp.saturating_add(interval_ms);
Expand Down

0 comments on commit 4bfaab8

Please sign in to comment.