Skip to content

Commit 07eef8c

Browse files
committed
Fix constructor args for deployment
1 parent 05d01ea commit 07eef8c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

scripts/deploy.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const chainOpts = {
2020
rocketTokenRPLFixedSupply: '0xb4efd85c19999d84251304bda99e90b92300bd93',
2121
genesisBlockTimestamp: 1695902400n,
2222
secondsPerSlot: 12n,
23-
beaconRootsHistoryBufferLength: 8192n,
23+
slotsPerHistoricalRoot: 8192n,
24+
beaconRootsHistoryBufferLength: 8191n,
2425
historicalRootOffset: 758n,
2526
beaconRoots: '0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02',
2627
},
@@ -34,7 +35,8 @@ const chainOpts = {
3435
rocketTokenRPLFixedSupply: null,
3536
genesisBlockTimestamp: 1742213400n,
3637
secondsPerSlot: 12n,
37-
beaconRootsHistoryBufferLength: 8192n,
38+
slotsPerHistoricalRoot: 8192n,
39+
beaconRootsHistoryBufferLength: 8191n,
3840
historicalRootOffset: 0n,
3941
beaconRoots: '0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02',
4042
},

test/_helpers/deployer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const defaultOpts = {
3131
fixedSupplyTokenAddress: null,
3232
genesisBlockTimestamp: 1606824023n,
3333
secondsPerSlot: 12n,
34-
beaconRootsHistoryBufferLength: 8192n,
34+
slotsPerHistoricalRoot: 8192n,
35+
beaconRootsHistoryBufferLength: 8191n,
3536
historicalRootOffset: 758n, // Mainnet value: CAPELLA_FORK_EPOCH * SLOTS_PER_EPOCH / SLOTS_PER_HISTORICAL_ROOT = 758
3637
beaconRoots: '0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02',
3738
logging: true,
@@ -147,7 +148,7 @@ export class RocketPoolDeployer {
147148
this.contractPlan['rocketNodeDistributorDelegate'].constructorArgs = [];
148149
this.contractPlan['rocketMinipoolBase'].constructorArgs = [];
149150
this.contractPlan['blockRoots'].constructorArgs = [opts.genesisBlockTimestamp, opts.secondsPerSlot, opts.beaconRootsHistoryBufferLength, opts.beaconRoots];
150-
this.contractPlan['beaconStateVerifier'].constructorArgs = () => [this.rocketStorageInstance.target, opts.beaconRootsHistoryBufferLength, opts.historicalRootOffset];
151+
this.contractPlan['beaconStateVerifier'].constructorArgs = () => [this.rocketStorageInstance.target, opts.slotsPerHistoricalRoot, opts.historicalRootOffset];
151152
this.contractPlan['rocketMegapoolDelegate'].constructorArgs = () => [this.rocketStorageInstance.target, opts.genesisBlockTimestamp];
152153

153154
// Setup deployment

0 commit comments

Comments
 (0)