diff --git a/cmd/gossamer/commands/import_runtime.go b/cmd/gossamer/commands/import_runtime.go index 16d19577c7a..262f38049dd 100644 --- a/cmd/gossamer/commands/import_runtime.go +++ b/cmd/gossamer/commands/import_runtime.go @@ -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 {