-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Flow EVM] Fix the evm chainID bug for mainnet #5443
[Flow EVM] Fix the evm chainID bug for mainnet #5443
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5443 +/- ##
==========================================
- Coverage 55.84% 55.83% -0.01%
==========================================
Files 1029 1030 +1
Lines 100798 100807 +9
==========================================
- Hits 56291 56289 -2
- Misses 40179 40186 +7
- Partials 4328 4332 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
) | ||
|
||
var ( | ||
FlowEVMTestnetChainID = big.NewInt(646) |
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: why is Flow in the name, wouldn't this just be EVMTestnetID
and EVMMainnetID
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.
We could name it EVMTestnetID , I used the Flow in case someone externally is using it and we use name FlowEVM for the evm chain
// WithMainnetChainID sets the chain ID to flow evm testnet | ||
func WithTestnetChainID() Option { | ||
// WithChainID sets the evm chain ID | ||
func WithChainID(chainID *big.Int) Option { |
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.
could we make this a type instead of *big.Int
) | ||
|
||
var ( | ||
FlowEVMTestnetChainID = big.NewInt(646) |
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.
same as above: could this be
type EVMChainID big.Int
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.
I start with that change first but we directly use this value for a lot of internal EVM stuff that needs the big.Int value and there was a couple of typecasting that we had to do. I might revisit this later
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.
minor comments, but looks good!
closes: #5441