Skip to content

Commit

Permalink
configure batch number
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Mar 18, 2024
1 parent eabaf55 commit e6ab5ce
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
3 changes: 2 additions & 1 deletion contracts/ForkingManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ contract ForkingManager is IForkingManager, ForkableStructure {
trustedAggregatorTimeout: IPolygonZkEVM(zkEVM)
.trustedAggregatorTimeout(),
chainID: reservedChainIdForFork1,
forkID: IPolygonZkEVM(zkEVM).forkID()
forkID: IPolygonZkEVM(zkEVM).forkID(),
lastVerifiedBatch: IPolygonZkEVM(zkEVM).lastVerifiedBatch()
});
IForkableZkEVM(newInstances.zkEVM.one).initialize(
newInstances.forkingManager.one,
Expand Down
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@openzeppelin/contracts": "^4.9.5",
"@openzeppelin/contracts-upgradeable": "^4.9.5",
"@openzeppelin/hardhat-upgrades": "1.22.1",
"@RealityETH/zkevm-contracts": "github:RealityETH/zkevm-contracts#v3.0.0-RealityETH",
"@RealityETH/zkevm-contracts": "github:RealityETH/zkevm-contracts#2f2a60aacc63cb18c9078ec9a779966eb16ebc1f",
"@types/sinon-chai": "^3.2.3",
"circomlibjs": "0.1.1",
"dotenv": "^8.6.0",
Expand Down
1 change: 1 addition & 0 deletions src/deployment/3_deployContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ async function main() {
trustedAggregatorTimeout,
chainID,
forkID,
0,
],
genesisRootHex,
trustedSequencerURL,
Expand Down
3 changes: 2 additions & 1 deletion test/ForkableZkEVM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ contract ForkableZkEVMTest is Test {
trustedAggregator: trustedAggregator,
trustedAggregatorTimeout: trustedAggregatorTimeout,
chainID: chainID,
forkID: forkID
forkID: forkID,
lastVerifiedBatch: 0
});
forkableZkEVM.initialize(
forkmanager,
Expand Down
3 changes: 2 additions & 1 deletion test/ForkingManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ contract ForkingManagerTest is Test {
trustedAggregator: trustedAggregator,
trustedAggregatorTimeout: trustedAggregatorTimeout,
chainID: chainIdManager.getNextUsableChainId(),
forkID: forkID
forkID: forkID,
lastVerifiedBatch: 0
});
zkevm.initialize(
address(forkmanager),
Expand Down
3 changes: 2 additions & 1 deletion test/L1GlobalChainInfoPublisher.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ contract L1GlobalChainInfoPublisherTest is Test {
trustedAggregator: trustedAggregator,
trustedAggregatorTimeout: trustedAggregatorTimeout,
chainID: chainIdManager.getNextUsableChainId(),
forkID: forkID
forkID: forkID,
lastVerifiedBatch: 0
});
zkevm.initialize(
address(forkmanager),
Expand Down
3 changes: 2 additions & 1 deletion test/L1GlobalForkRequester.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ contract L1GlobalForkRequesterTest is Test {
trustedAggregator: trustedAggregator,
trustedAggregatorTimeout: trustedAggregatorTimeout,
chainID: chainID,
forkID: forkID
forkID: forkID,
lastVerifiedBatch: 0
});
zkevm.initialize(
address(forkmanager),
Expand Down

0 comments on commit e6ab5ce

Please sign in to comment.