Skip to content

Commit

Permalink
Handle receipts of transactions being executed
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 26, 2024
1 parent 6edce74 commit 7fe57cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/safe-apps-provider/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,13 @@ export class SafeAppProvider extends EventEmitter implements EIP1193Provider {
};
}

// If transaction is executing, receipt is null
const receipt = await this.sdk.eth.getTransactionReceipt([tx.txHash]);
if (!receipt) {
return {
status,
};
}

const calls =
tx.txData?.dataDecoded?.method !== 'multiSend'
Expand Down

0 comments on commit 7fe57cf

Please sign in to comment.