Skip to content

Commit 88bd15d

Browse files
authored
common: use a default chain name in fromGethGenesis if no chain name specified (#2319)
* common: make chain name mandatory in fromGethGenesis * improve comment * change startegy to just pass name custom * undo comment
1 parent 9d885c9 commit 88bd15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class Common extends EventEmitter {
166166
): Common {
167167
const genesisParams = parseGethGenesis(genesisJson, chain)
168168
const common = new Common({
169-
chain: genesisParams.name,
169+
chain: genesisParams.name ?? 'custom',
170170
customChains: [genesisParams],
171171
hardfork,
172172
})

0 commit comments

Comments
 (0)