-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: migrate base mainnet rpc to infura #28974
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
8819652
to
b6ae9e4
Compare
b6ae9e4
to
0d2ae6e
Compare
'bsc-mainnet.infura.io', | ||
'mantle-mainnet.infura.io', | ||
'opbnb-mainnet.infura.io', | ||
'scroll-mainnet.infura.io', |
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.
testnet are included here, i addded this list because of the comment above from github-advanced-security
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.
where did you get this list?
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 got it from infura doc here
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.
testnet are excluded now
f23cf64
to
282122f
Compare
282122f
to
5eec9b4
Compare
Code looks good. I will do a manual test |
const urlHost = new URL(defaultRpcEndpoint.url).host; | ||
return ( | ||
defaultRpcEndpoint.type === RpcEndpointType.Infura || | ||
allowedInfuraHosts.includes(urlHost) |
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.
doing this because some infura network can be added as custom network
Builds ready [c71d569]
Page Load Metrics (1900 ± 75 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [919d18b]
Page Load Metrics (2009 ± 74 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR introduces a migration to replace the Base network RPC URL (
https://mainnet.base.org
) with the new Infura RPC URL (https://base-mainnet.infura.io/v3/{infuraProjectId}
) in the MetaMask state.Acceptance Criteria:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist