Skip to content

Commit ca3291c

Browse files
fix: red toast for partially successful transfers (#2210)
1 parent 0d992db commit ca3291c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/namadillo/src/atoms/integrations/services.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ export const handleStandardTransfer = async (
296296

297297
try {
298298
const txResponse = await fetchTx(tx.hash ?? "");
299-
const hasRejectedTx = txResponse.innerTransactions.some(
299+
// We consider tx as rejected if every inner transaction has an exit code of Rejected
300+
const hasRejectedTx = txResponse.innerTransactions.every(
300301
({ exitCode }) => exitCode === WrapperTransactionExitCodeEnum.Rejected
301302
);
302303

0 commit comments

Comments
 (0)