Skip to content

Commit

Permalink
Do not calculate pending transactions as for now relayer check this f…
Browse files Browse the repository at this point in the history
…or us
  • Loading branch information
juanenrisley committed Oct 24, 2023
1 parent 7845a4e commit ce50af2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/store/activity/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ export function checkPendingActivities() {
const receipt = await ethProvider.getTransactionReceipt(
activity.txHash,
);
const isError = receipt?.status === 0;

dispatch({
type: ActionTypes.ACTIVITIES_SET_STATUS,
meta: {
category: typeToCategory(activity.type),
hash: activity.hash,
isError,
isPending: !isError && receipt?.confirmations < 3,
isError: receipt?.status === 0,
isPending: false,
},
});
});
Expand Down

0 comments on commit ce50af2

Please sign in to comment.