Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a47f0c04
Commit
a47f0c04
authored
Jun 28, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: fix some typing
parent
2fd0a2fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
hardhat.ts
packages/contracts-bedrock/deploy-config/hardhat.ts
+1
-1
genesis-l1.ts
packages/contracts-bedrock/tasks/genesis-l1.ts
+1
-2
No files found.
packages/contracts-bedrock/deploy-config/hardhat.ts
View file @
a47f0c04
...
@@ -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
()
/
100
0
:
(
Date
.
now
()
/
1000
)
|
0
const
config
=
{
const
config
=
{
submissionInterval
:
6
,
submissionInterval
:
6
,
...
...
packages/contracts-bedrock/tasks/genesis-l1.ts
View file @
a47f0c04
...
@@ -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
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment