-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get transaction details (request) #101
Conversation
packages/circle-demo-webapp/app/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
packages/circle-demo-webapp/app/routes/transactions.$walletId/route.tsx
Outdated
Show resolved
Hide resolved
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.
This PR highlights several issues related to code quality, consistency, and maintainability. Please review my inline comments for details.
packages/circle-demo-webapp/app/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
packages/circle-demo-webapp/app/routes/transactions.$walletId/route.tsx
Outdated
Show resolved
Hide resolved
...ebapp/app/routes/transactions.$walletId/components/TransactionDetails/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
await callFetch('/api/createWallet', args); | ||
return true; | ||
} catch (err) { | ||
setError(err as Error); |
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.
this looks good, thanks for taking care of it 👍
sdk.getWalletTokenBalance({ | ||
id, | ||
includeAll: true, | ||
}), | ||
sdk.getWallet({ id }), | ||
sdk.listTransactions({ |
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.
why you don't like getting initial transactions from the server? loading them on the client side slows down the page load and requires you to handle loading and error states.
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.
we need to add Tokens to the transaction. we already have this functionality in another place. we have two choices:
- use what we have (fast way)
- make a separate helper to fill transactions with tokens
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.
thanks, this looks better, let's move on
No description provided.