Skip to content
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

Merged
merged 11 commits into from
Jan 21, 2025
Merged

Get transaction details (request) #101

merged 11 commits into from
Jan 21, 2025

Conversation

avkos
Copy link
Contributor

@avkos avkos commented Jan 17, 2025

No description provided.

@avkos avkos requested a review from krzysu January 17, 2025 01:08
Copy link
Collaborator

@krzysu krzysu left a 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.

@avkos avkos requested review from krzysu and sztok7 January 17, 2025 18:18
await callFetch('/api/createWallet', args);
return true;
} catch (err) {
setError(err as Error);
Copy link
Collaborator

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({
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Collaborator

@krzysu krzysu left a 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

@avkos avkos merged commit b282d5e into main Jan 21, 2025
2 checks passed
@avkos avkos deleted the ok/get-tx-by-id branch January 21, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants