Commit a47f0c04 authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: fix some typing

parent 2fd0a2fe
...@@ -5,7 +5,7 @@ const { env } = process ...@@ -5,7 +5,7 @@ const { env } = process
const startingTimestamp = const startingTimestamp =
typeof env.L2OO_STARTING_BLOCK_TIMESTAMP === 'string' typeof env.L2OO_STARTING_BLOCK_TIMESTAMP === 'string'
? ethers.BigNumber.from(env.L2OO_STARTING_BLOCK_TIMESTAMP).toNumber() ? ethers.BigNumber.from(env.L2OO_STARTING_BLOCK_TIMESTAMP).toNumber()
: Date.now() / 1000 : (Date.now() / 1000) | 0
const config = { const config = {
submissionInterval: 6, submissionInterval: 6,
......
...@@ -11,8 +11,7 @@ task('genesis-l1', 'create a genesis config') ...@@ -11,8 +11,7 @@ task('genesis-l1', 'create a genesis config')
'genesis.json' 'genesis.json'
) )
.setAction(async (args, hre) => { .setAction(async (args, hre) => {
// TODO: type needs to be updated to work with modern geth const alloc: State = {}
const alloc: State | any = {}
// Give each predeploy a single wei // Give each predeploy a single wei
for (let i = 0; i <= 0xff; i++) { for (let i = 0; i <= 0xff; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment