feat: integrate sns#441
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
56ca549 to
94e4449
Compare
c13b8ee to
84f7788
Compare
a57c3b0 to
d8053a8
Compare
There was a problem hiding this comment.
Bug: Domain Resolution Error Not Handled
The if (destinationValidation === null) condition checks the initial format validation result, not the final state after domain resolution. If a syntactically valid .sol domain fails to resolve, destinationValidation remains null while updatedContext.validation[SendFormNames.DestinationAccountInput] is updated with an error. This leads to buildTransactionMessageAndUpdateInterface being called with an unresolved domain. The condition should check updatedContext.validation[SendFormNames.DestinationAccountInput] === null.
packages/snap/src/features/send/views/SendForm/events.tsx#L400-L404
snap-solana-wallet/packages/snap/src/features/send/views/SendForm/events.tsx
Lines 400 to 404 in d8053a8
Bug: Incorrect Domain Resolution in `resolveAddress` Method
The resolveAddress method incorrectly returns domainAddress from the getPrimaryDomain result. Intended to resolve an address to its domain name, it should return domainName. Returning domainAddress is semantically incorrect and likely stems from a misunderstanding of the external library API.
packages/snap/src/core/services/name-resolution/NameResolutionService.ts#L22-L27
Was this report helpful? Give feedback by reacting with 👍 or 👎
|



onNameLookupNot in scope:
.soldomain in confirmations (There is a Snap UI limitation right now)