diff --git a/src/rapsV2/actions/claimTransactionClaimableAction.ts b/src/rapsV2/actions/claimTransactionClaimableAction.ts index a62b4ff9478..b2d94597cd0 100644 --- a/src/rapsV2/actions/claimTransactionClaimableAction.ts +++ b/src/rapsV2/actions/claimTransactionClaimableAction.ts @@ -25,7 +25,7 @@ export async function claimTransactionClaimable({ parameters, wallet }: ActionPr hash: result.result.hash, network: chainsName[result.result.chainId], status: 'pending', - type: 'send', + type: 'claim', nonce: result.result.nonce, asset, } satisfies NewTransaction; @@ -36,6 +36,12 @@ export async function claimTransactionClaimable({ parameters, wallet }: ActionPr transaction, }); + const tx = await wallet?.provider?.getTransaction(result.result.hash); + const receipt = await tx?.wait(); + if (!receipt) { + throw new RainbowError('[CLAIM-TRANSACTION-CLAIMABLE]: tx not mined'); + } + return { nonce: result.result.nonce, hash: result.result.hash,