Skip to content

Commit

Permalink
Fix(cli): import-runtime (#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro authored and timwu20 committed Apr 18, 2024
1 parent 9bb83c9 commit 57c970f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/gossamer/commands/import_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func createGenesisWithRuntime(fp string, genesisSpecFilePath string) (string, er
return "", err
}

chainSpec.Genesis.Runtime = &genesis.Runtime{
System: &genesis.System{},
}

chainSpec.Genesis.Runtime.System.Code = fmt.Sprintf("0x%x", runtime)
jsonSpec, err := json.MarshalIndent(chainSpec, "", "\t")
if err != nil {
Expand Down

0 comments on commit 57c970f

Please sign in to comment.