From a77840838f76166b1237024d6ce82d2fff8cf9c5 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Thu, 26 Feb 2026 15:55:49 +0300 Subject: [PATCH] fix: wait 12s before auto-verify to allow block inclusion TX was not yet included in a block when verify fired immediately after signing, causing first attempt to always fail. Block time on Asset Hub is ~12s, so delay the verify call accordingly. --- web/src/components/p2p/DepositModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/p2p/DepositModal.tsx b/web/src/components/p2p/DepositModal.tsx index e734da63..d8e1fbef 100644 --- a/web/src/components/p2p/DepositModal.tsx +++ b/web/src/components/p2p/DepositModal.tsx @@ -154,8 +154,8 @@ export function DepositModal({ isOpen, onClose, onSuccess }: DepositModalProps) } setStep('verifying'); toast.success(t('p2pDeposit.txSent')); - // Auto-verify immediately — fire and forget - handleVerifyDeposit(hash, blockNum); + // Wait for TX to be included in a block before verifying (~12s block time) + setTimeout(() => handleVerifyDeposit(hash, blockNum), 12000); } } catch (error: unknown) { console.error('Deposit transaction error:', error);