-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove use of zero chain ID. #19186
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
Remove use of zero chain ID. #19186
Conversation
dhaidashenko
left a comment
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.
Just a friendly reminder to update refenrece to chainlink-evm once it's merged
|
| peerID := cltest.DefaultP2PPeerID | ||
| ocrKeyID := cltest.DefaultOCRKeyBundleID | ||
| jobSpecText := fmt.Sprintf(ocrJobSpecText, testutils.NewAddress().Hex(), peerID, ocrKeyID, transmitterAddress.Hex(), b1, b2) | ||
| jobSpecText := fmt.Sprintf(ocrJobSpecText, testutils.NewAddress().Hex(), testutils.FixtureChainID.String(), peerID, ocrKeyID, transmitterAddress.Hex(), b1, b2) |
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.
nit/ You don't have to call String() with %s:
| jobSpecText := fmt.Sprintf(ocrJobSpecText, testutils.NewAddress().Hex(), testutils.FixtureChainID.String(), peerID, ocrKeyID, transmitterAddress.Hex(), b1, b2) | |
| jobSpecText := fmt.Sprintf(ocrJobSpecText, testutils.NewAddress().Hex(), testutils.FixtureChainID, peerID, ocrKeyID, transmitterAddress.Hex(), b1, b2) |





Related: smartcontractkit/chainlink-evm#214
This PR removes the use of chain ID:
0. Instead, it uses theFixtureChainID&NullClientChainIDfromchainlink-evm, which uses a value that is unlikely to be used by a production chain.This change is necessary due to a breaking change in
go-ethereumthat disallows using0as the chain ID: https://github.com/ethereum/go-ethereum/blob/master/core/types/transaction_signing.go#L193. In order to bumpgo-ethereum, this change needs to be applied.