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
: Your change here
: Your change here
@metamask/package-b
: Your change here
: Your change here
Checklist
[ ] I've updated the test suite for new or updated code as appropriate
[ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
[ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
Explanation
Mirrors the wallet_createSession handler in how eth account support is checked/asserted. Opted to do this rather than modify
assertScopeSupported
because thebucketScopes
helper also relies onassertScopedSupported
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