MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

add account support check in validator #4816

Closed jiexi closed 1 month ago

jiexi commented 1 month ago

Explanation

Mirrors the wallet_createSession handler in how eth account support is checked/asserted. Opted to do this rather than modify assertScopeSupported because the bucketScopes helper also relies on assertScopedSupported but doesn't care about accounts (which is why eth accounts are checked outside of assertScopeSupported in the wallet_createSession handler currently)

References

Changelog

@metamask/package-a

@metamask/package-b

Checklist