Skip to content

Commit

Permalink
feat: default to ArbOS 20 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev authored Apr 18, 2024
1 parent 1ac0580 commit 19f377b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/__snapshots__/prepareChainConfig.unit.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`creates chain config with custom params 1`] = `
"DataAvailabilityCommittee": true,
"EnableArbOS": false,
"GenesisBlockNum": 1,
"InitialArbOSVersion": 11,
"InitialArbOSVersion": 20,
"InitialChainOwner": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"MaxCodeSize": 40960,
"MaxInitCodeSize": 81920,
Expand Down Expand Up @@ -41,7 +41,7 @@ exports[`creates chain config with defaults 1`] = `
"DataAvailabilityCommittee": false,
"EnableArbOS": true,
"GenesisBlockNum": 0,
"InitialArbOSVersion": 11,
"InitialArbOSVersion": 20,
"InitialChainOwner": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"MaxCodeSize": 24576,
"MaxInitCodeSize": 49152,
Expand Down
4 changes: 2 additions & 2 deletions src/createRollupPrepareConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export type CreateRollupPrepareConfigParams = Pick<CreateRollupPrepareConfigResu
};

const wasmModuleRoot: `0x${string}` =
// https://github.com/OffchainLabs/nitro/releases/tag/consensus-v11
'0xf4389b835497a910d7ba3ebfb77aa93da985634f3c052de1290360635be40c4a';
// https://github.com/OffchainLabs/nitro/releases/tag/consensus-v20
'0x8b104a2e80ac6165dc58b9048de12f301d70b02a0ab51396c22b4b4b802a16a4';

export const defaults = {
confirmPeriodBlocks: BigInt(150),
Expand Down
2 changes: 1 addition & 1 deletion src/prepareChainConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const defaults = {
EnableArbOS: true,
AllowDebugPrecompiles: false,
DataAvailabilityCommittee: false,
InitialArbOSVersion: 11,
InitialArbOSVersion: 20,
GenesisBlockNum: 0,
MaxCodeSize: 24_576,
MaxInitCodeSize: 49_152,
Expand Down
2 changes: 1 addition & 1 deletion src/prepareChainConfig.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ it('creates chain config with custom params', () => {
EnableArbOS: false,
AllowDebugPrecompiles: true,
DataAvailabilityCommittee: true,
InitialArbOSVersion: 11,
InitialArbOSVersion: 20,
InitialChainOwner: vitalik,
GenesisBlockNum: 1,
MaxCodeSize: 40 * 1024,
Expand Down

0 comments on commit 19f377b

Please sign in to comment.