Skip to content

Commit

Permalink
feat(supersim): configure l1 and l2 genesis state
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley committed Jun 26, 2024
1 parent aa2d91a commit 3b9c364
Show file tree
Hide file tree
Showing 6 changed files with 16,909 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ go.work
go.work.sum

# env file
.env
.env

.DS_Store
6 changes: 4 additions & 2 deletions anvil/anvil.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import (
)

type Config struct {
ChainId uint64
Port uint64
ChainId uint64
Port uint64
GenesisPath string
}

type Anvil struct {
Expand Down Expand Up @@ -53,6 +54,7 @@ func (a *Anvil) Start(ctx context.Context) error {
"--host", "127.0.0.1",
"--chain-id", fmt.Sprintf("%d", a.cfg.ChainId),
"--port", fmt.Sprintf("%d", a.cfg.Port),
"--init", fmt.Sprintf("%s", a.cfg.GenesisPath),
}

a.cmd = exec.CommandContext(a.resourceCtx, "anvil", args...)
Expand Down
Loading

0 comments on commit 3b9c364

Please sign in to comment.