-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common/Monorepo: Remove NetworkId #3513
Conversation
@@ -63,12 +61,12 @@ describe('[Common]: Custom chains', () => { | |||
|
|||
it('custom() -> behavior', () => { | |||
let common = createCustomCommon({ chainId: 123 }) | |||
assert.deepEqual(common.networkId(), BigInt(1), 'should default to mainnet base chain') | |||
assert.equal(common.consensusAlgorithm(), 'casper', 'should default to mainnet base chain') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this right? Why are we not checking chainID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's correct, the goal of this test is to not check for the value passed (chainId
), but to check that the other values remain the mainnet-specific ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
Co-authored-by: Gabriel Rocheleau <contact@rockwaterweb.com>
Have addressed, ready for re-review! |
Co-authored-by: Scotty <66335769+ScottyPoi@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR removes
networkId
from Common and upstream usages and configuration files. Client is keeping for now as a CLI option (but deprecated) for a smoother transition on things like Docker and stuff.Ready for review! 🙂