-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4ecdd50
to
75271fb
Compare
75271fb
to
6d2ec94
Compare
6d2ec94
to
94a4516
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! 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} |
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.
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([ |
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.
const [txnIdDs, fromTxnIds] = await Promise.all([ | |
const [txnIds, fromTxnIds] = await Promise.all([ |
typo I think?
bf9cdf3
to
66e9a0b
Compare
getTransactions
to use bothToAddress
andFromAddress