Skip to content

Commit

Permalink
common: use a default chain name in fromGethGenesis if no chain name …
Browse files Browse the repository at this point in the history
…specified (#2319)

* common: make chain name mandatory in fromGethGenesis

* improve comment

* change startegy to just pass name custom

* undo comment
  • Loading branch information
g11tech authored Sep 29, 2022
1 parent 9d885c9 commit 88bd15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class Common extends EventEmitter {
): Common {
const genesisParams = parseGethGenesis(genesisJson, chain)
const common = new Common({
chain: genesisParams.name,
chain: genesisParams.name ?? 'custom',
customChains: [genesisParams],
hardfork,
})
Expand Down

0 comments on commit 88bd15d

Please sign in to comment.