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
refactor: post condition asset info #1754
Conversation
🦋 Changeset detectedLatest commit: 64cbc09 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/blockstack/stacks-wallet-web/Bhy4rFUamdCTa8MsuhgGKYgEe5NR |
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! just a couple comments
9b8c986
to
38222db
Compare
38222db
to
3a841bf
Compare
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.
Nice refactor @fbwoolf— most questions pertain to the exact function of useAssetFromPostCondition
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 @fbwoolf
Small nit, let's rebase away the chore: add changeset
commit, as this doesn't add anything valuable to the history
src/pages/transaction-signing/components/post-conditions/non-fungible-post-condition.tsx
Outdated
Show resolved
Hide resolved
9550c6e
to
64cbc09
Compare
This PR refactors how we get the token metadata for post condition assets. Before, we would only get data and display it correctly if the wallet account had that particular token; this made swaps incorrect in the UI (see before image). In the example, I didn't have any
USDA
tokens so swapping for them rendered incorrectly in the post condition. Now, we use the token endpoint to show the metadata correctly (see after image). This issue was found investigating: Issue #1700Issue #1745
Before:
After:
cc/ @aulneau @kyranjamie @fbwoolf
Testing: