Skip to content

Commit

Permalink
fix multicall pending message
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Jan 18, 2024
1 parent c03e658 commit ed78f22
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/src/app/lib/utils/syscalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,13 @@ export function syscalls({
showTopUpDialog,
setTopUpAccount
);
setTxHash(tx?.transaction_hash);
addTransaction({
hash: tx?.transaction_hash,
metadata: {
method: "Multicall",
},
});
const receipt = await provider?.waitForTransaction(tx?.transaction_hash, {
retryInterval: TRANSACTION_WAIT_RETRY_INTERVAL,
});
Expand All @@ -1453,13 +1460,6 @@ export function syscalls({
(receipt as RevertedTransactionReceiptResponse).revert_reason
);
}
setTxHash(tx?.transaction_hash);
addTransaction({
hash: tx?.transaction_hash,
metadata: {
method: "Multicall",
},
});
const events = await parseEvents(
receipt as InvokeTransactionReceiptResponse,
queryData.adventurerByIdQuery?.adventurers[0] ?? NullAdventurer
Expand Down

1 comment on commit ed78f22

@vercel
Copy link

@vercel vercel bot commented on ed78f22 Jan 18, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.