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
74305be2
Commit
74305be2
authored
Jul 26, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: cleanup genesis command
parent
ac6c0e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
cmd.go
op-node/cmd/genesis/cmd.go
+10
-3
No files found.
op-node/cmd/genesis/cmd.go
View file @
74305be2
...
...
@@ -3,6 +3,7 @@ package genesis
import
(
"context"
"encoding/json"
"errors"
"fmt"
"math/big"
"os"
...
...
@@ -92,11 +93,11 @@ var Subcommands = cli.Commands{
},
&
cli
.
StringFlag
{
Name
:
"deploy-config"
,
Usage
:
"Path to
hardhat
deploy config file"
,
Usage
:
"Path to deploy config file"
,
},
&
cli
.
StringFlag
{
Name
:
"deployment-dir"
,
Usage
:
"Path to deployment directory"
,
Usage
:
"Path to
network
deployment directory"
,
},
&
cli
.
StringFlag
{
Name
:
"outfile.l2"
,
...
...
@@ -115,7 +116,13 @@ var Subcommands = cli.Commands{
return
err
}
depPath
,
network
:=
filepath
.
Split
(
ctx
.
String
(
"deployment-dir"
))
deployDir
:=
ctx
.
String
(
"deployment-dir"
)
if
deployDir
==
""
{
return
errors
.
New
(
"Must specify --deployment-dir"
)
}
log
.
Info
(
"Deployment directory"
,
"path"
,
deployDir
)
depPath
,
network
:=
filepath
.
Split
(
deployDir
)
hh
,
err
:=
hardhat
.
New
(
network
,
nil
,
[]
string
{
depPath
})
if
err
!=
nil
{
return
err
...
...
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