-
Notifications
You must be signed in to change notification settings - Fork 563
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
Add onNameLookup
export
#1394
Add onNameLookup
export
#1394
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1394 +/- ##
==========================================
+ Coverage 95.74% 95.79% +0.04%
==========================================
Files 239 240 +1
Lines 5410 5469 +59
Branches 837 852 +15
==========================================
+ Hits 5180 5239 +59
Misses 230 230
☔ View full report in Codecov by Sentry. |
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
onNameLookup
exportonNameLookup
export
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
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.
Looks good overall. Just some minor comments.
packages/snaps-execution-environments/src/common/BaseSnapExecutor.test.browser.ts
Outdated
Show resolved
Hide resolved
packages/snaps-execution-environments/src/common/validation.test.ts
Outdated
Show resolved
Hide resolved
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
5920bd3
Added new endowment:
endowment:name-lookup
& caveatchainIds
. This will allow snaps to return a resolved account/domain based on a CAIP-2chainId
anddomain
oraddress
passed to it.Note: There are types used from
namespace.ts
that now exist in@metamask/utils
. I reviewed the PRs that copied over the types. I will replace usage with the types from@metamask/utils
in a subsequent PR (there's also one type that exists innamespace.ts
that is missing from@metamask/utils
, so I will first open a PR for that).