-
Notifications
You must be signed in to change notification settings - Fork 839
Open
Labels
Description
The hardforks() method in the Common class contains a conditional check that doesn't actually do anything. The method checks if customHardforks is defined but doesn't use the result to modify the return value.
ethereumjs-monorepo/packages/common/src/common.ts
Lines 735 to 741 in e308102
| hardforks(): HardforkTransitionConfig[] { | |
| const hfs = this._chainParams.hardforks | |
| if (this._chainParams.customHardforks !== undefined) { | |
| this._chainParams.customHardforks | |
| } | |
| return hfs | |
| } |