Skip to content

Commit

Permalink
add 1s to block time
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy committed Jan 17, 2025
1 parent 6a80190 commit dc8198a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion yarn-project/ethereum/src/l1_tx_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ export class L1TxUtils {

public async simulateGasUsed(
request: L1TxRequest,
_gasConfig?: L1TxUtilsConfig,
blockOverrides: BlockOverrides<bigint, number> = {},
stateOverrides: StateOverride = [],
_gasConfig?: L1TxUtilsConfig,
): Promise<bigint> {
const gasConfig = { ...this.config, ..._gasConfig };
const gasPrice = await this.getGasPrice(gasConfig, false);
Expand Down
8 changes: 2 additions & 6 deletions yarn-project/sequencer-client/src/publisher/l1-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,8 @@ export class L1Publisher {
to: this.rollupContract.address,
data,
},
undefined,
{
time: timestamp,
time: timestamp + 1n,
},
[
{
Expand Down Expand Up @@ -1096,7 +1095,6 @@ export class L1Publisher {
{
...opts,
gasLimit: simulationResult + blobEvaluationGas,
gasLimitBufferPercentage: 100,
},
{
blobs: encodedData.blobs.map(b => b.dataWithZeros),
Expand Down Expand Up @@ -1139,9 +1137,8 @@ export class L1Publisher {
to: this.rollupContract.address,
data,
},
undefined,
{
time: timestamp,
time: timestamp + 1n,
},
[
{
Expand Down Expand Up @@ -1170,7 +1167,6 @@ export class L1Publisher {
{
...opts,
gasLimit: simulationResult + blobEvaluationGas,
gasLimitBufferPercentage: 100,
},
{
blobs: encodedData.blobs.map(b => b.dataWithZeros),
Expand Down

0 comments on commit dc8198a

Please sign in to comment.