Skip to content

Commit

Permalink
fix: rollapp's mock backend initialization (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Nov 21, 2024
1 parent 6837c1f commit a4803d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/rollapp/init/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ func runInit(
return err
}

if env == "mock" {
err = genesisutils.InitializeRollappGenesis(ic)
if err != nil {
return err
}
}

addresses = append(addresses, sequencerKeys...)

/* ------------------------------ Initialize Local Hub ---------------------------- */
Expand Down Expand Up @@ -117,13 +124,6 @@ func initRollapp(
return err
}

if env == "mock" {
err = genesisutils.InitializeRollappGenesis(initConfig)
if err != nil {
return err
}
}

as, err := genesisutils.GetGenesisAppState(home)
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions utils/keys/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func generateMockSequencerKeys(initConfig roller.RollappConfig) ([]KeyInfo, erro
if err != nil {
return nil, err
}

addresses = append(
addresses, KeyInfo{
Address: address.Address,
Expand Down

0 comments on commit a4803d1

Please sign in to comment.