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

warn wallet_watchAsset ERC721,ERC1155 #264

Merged
merged 12 commits into from
Jun 26, 2023
Merged

Conversation

jiexi
Copy link
Contributor

@jiexi jiexi commented Jun 22, 2023

Adds a console.warn when wallet_watchAsset is called with params: {type: 'ERC721'} or params: {type: 'ERC1155'}.

Examples

@jiexi jiexi requested a review from a team as a code owner June 22, 2023 21:50
@jiexi jiexi requested a review from adonesky1 June 22, 2023 21:51
src/messages.ts Outdated Show resolved Hide resolved
@adonesky1 adonesky1 requested review from mcmire and Gudahtt June 23, 2023 15:07
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 small question, and we just need to update that warning message and then I think we're good to go!

@socket-security
Copy link

socket-security bot commented Jun 23, 2023

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@jiexi
Copy link
Contributor Author

jiexi commented Jun 23, 2023

@metamask/controller-utils@4.0.0 is used in extension. Okay if we @SocketSecurity ignore-all the socket-security alerts?

package.json Outdated Show resolved Hide resolved
@adonesky1 adonesky1 requested a review from danjm June 26, 2023 15:32
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.

LGTM!

@jiexi jiexi merged commit 715a188 into main Jun 26, 2023
16 checks passed
@jiexi jiexi deleted the jl/wallet_watchAsset-warning branch June 26, 2023 16:45
@adonesky1 adonesky1 mentioned this pull request Jun 26, 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.

6 participants