Skip to content
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 networkId #191

Merged
merged 7 commits into from
Sep 27, 2023
Merged

Remove networkId #191

merged 7 commits into from
Sep 27, 2023

Conversation

jiexi
Copy link
Contributor

@jiexi jiexi commented Aug 29, 2023

Wallets shouldn't be directly concerned about the network ID as this more of a p2p concept for gossip. What wallets really care about is chain ID as that is the correct value to use to identify a chain, build transactions, etc. Although these two values usually match (ignoring hex/dec formatting), there are exceptions.

We want to remove usage of networkId from the SmartTransactionController.

@jiexi jiexi requested a review from a team as a code owner August 29, 2023 21:03
package.json Show resolved Hide resolved
@jiexi jiexi requested a review from BelfordZ August 29, 2023 21:07
@jiexi
Copy link
Contributor Author

jiexi commented Aug 29, 2023

@metamaskbot publish-preview

@socket-security
Copy link

socket-security bot commented Aug 29, 2023

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@metamask/network-controller 10.3.1...13.0.0 None +4/-5 1.81 MB metamaskbot
@metamask/controller-utils 4.2.0...5.0.0 None +3/-4 1.59 MB metamaskbot

dan437
dan437 previously approved these changes Sep 8, 2023
Copy link
Collaborator

@dan437 dan437 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That worked!

shanejonas
shanejonas previously approved these changes Sep 11, 2023
@jiexi jiexi dismissed stale reviews from shanejonas and dan437 via 68904a9 September 11, 2023 17:02
@BelfordZ
Copy link

Needs the previews replaced with the releases, but looks good otherwise

@jiexi
Copy link
Contributor Author

jiexi commented Sep 13, 2023

Blocked until MetaMask/core#1633 is merged and released

package.json Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
adonesky1
adonesky1 previously approved these changes Sep 26, 2023
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One non-blocking question

@jiexi jiexi merged commit ded74e6 into main Sep 27, 2023
16 checks passed
@jiexi jiexi deleted the jl/remove-network-id branch September 27, 2023 16:45
@legobeat legobeat mentioned this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants