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

Update activities to show txn originating from current address #8396

Merged
merged 10 commits into from
Mar 2, 2023

Conversation

Jibz1
Copy link
Contributor

@Jibz1 Jibz1 commented Feb 17, 2023

  • Combined calls for getTransactions to use both ToAddress and FromAddress
  • use the ellipsis from suijs
  • remove uppercase from the transaction address on receipt page

Screenshot 2023-02-17 at 5 34 41 PM

@Jibz1 Jibz1 requested a review from mamos-mysten February 17, 2023 22:38
@vercel
Copy link

vercel bot commented Feb 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
explorer ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 2, 2023 at 3:26PM (UTC)
explorer-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 2, 2023 at 3:26PM (UTC)
frenemies ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 2, 2023 at 3:26PM (UTC)
wallet-adapter ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 2, 2023 at 3:26PM (UTC)

@vercel vercel bot temporarily deployed to Preview – frenemies February 17, 2023 22:46 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-adapter February 17, 2023 22:46 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 17, 2023 22:47 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-adapter February 20, 2023 12:47 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 20, 2023 12:48 Inactive
@vercel vercel bot temporarily deployed to Preview – frenemies February 20, 2023 12:48 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-adapter February 20, 2023 13:31 Inactive
@vercel vercel bot temporarily deployed to Preview – frenemies February 20, 2023 13:32 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 20, 2023 13:32 Inactive
@Jibz1 Jibz1 force-pushed the gj-wallet-txn-update branch from 4ecdd50 to 75271fb Compare February 20, 2023 16:30
@vercel vercel bot temporarily deployed to Preview – frenemies February 20, 2023 16:30 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-adapter February 20, 2023 16:31 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 20, 2023 16:32 Inactive
@Jibz1 Jibz1 force-pushed the gj-wallet-txn-update branch from 75271fb to 6d2ec94 Compare February 22, 2023 21:07
@vercel vercel bot temporarily deployed to Preview – wallet-adapter February 22, 2023 21:07 Inactive
@vercel vercel bot temporarily deployed to Preview – frenemies February 22, 2023 21:08 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 22, 2023 21:08 Inactive
@Jibz1 Jibz1 force-pushed the gj-wallet-txn-update branch from 6d2ec94 to 94a4516 Compare February 22, 2023 22:40
@vercel vercel bot temporarily deployed to Preview – frenemies February 22, 2023 22:40 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook February 22, 2023 22:41 Inactive
Copy link
Contributor

@williamrobertson13 williamrobertson13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! lol I see we did some of the same work

@@ -37,7 +37,7 @@ export function CoinActivitiesCard({ coinType }: { coinType: string }) {
<div className="p-2">
<Alert mode="warning">
<div className="font-semibold">
{error?.message || 'Something went wrong'}
{(error as Error).message}
Copy link
Contributor

@williamrobertson13 williamrobertson13 Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to fix this in this PR, but I think it would be better to type the Error field in our useQuery call inside useGetTransactionsByAddress so we don't have to manually cast error

});
return rpc.getTransactionWithEffectsBatch(txnIdDs.data);
// combine from and to transactions
const [txnIdDs, fromTxnIds] = await Promise.all([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const [txnIdDs, fromTxnIds] = await Promise.all([
const [txnIds, fromTxnIds] = await Promise.all([

typo I think?

@Jibz1 Jibz1 force-pushed the gj-wallet-txn-update branch from bf9cdf3 to 66e9a0b Compare March 2, 2023 15:25
@vercel vercel bot temporarily deployed to Preview – wallet-adapter March 2, 2023 15:26 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook March 2, 2023 15:26 Inactive
@Jibz1 Jibz1 merged commit 3bdcf31 into main Mar 2, 2023
@Jibz1 Jibz1 deleted the gj-wallet-txn-update branch March 2, 2023 15:33
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.

2 participants