fix(frontend): confirm EVM deposits via source-chain RPC receipts (#133) #154

Merged
PlasticDigits merged 1 commit from fix/gl-133-evm-receipt-source-rpc into main 2026-07-30 06:12:45 +00:00
PlasticDigits commented 2026-07-30 06:04:13 +00:00 (Migrated from gitlab.com)

Summary

  • After a successful depositERC20, the UI stayed on waiting for deposit / timed out despite a mined tx (e.g. 0xe1df0e27…7ce3) when the wallet RPC (56.rpc.thirdweb.com) returned 429.
  • Confirm deposits with waitForTransactionReceipt on getEvmClient(sourceChainConfig) so status reaches success, TransferForm parses the Deposit log, and navigates to /transfer/{xchainHashId}.
  • Extends INV-FE-EVM-ALLOWANCE-1 (allowance + balance + receipt waits).

Related to #133 / follow-up to !153.

Test plan

  • npm run test:run -- src/hooks/useBridgeDeposit.test.ts
  • Pre-commit typecheck/lint
  • On-chain: deposit tx 0xe1df0e27… status success, Bridge Deposit event present
  • After deploy: BSC vFDUSD → Terra — after approve+deposit, UI should leave “waiting for deposit” and show transfer status / xchain hash (even if MetaMask uses thirdweb)
## Summary - After a successful `depositERC20`, the UI stayed on **waiting for deposit** / timed out despite a mined tx (e.g. [`0xe1df0e27…7ce3`](https://bscscan.com/tx/0xe1df0e27b873392b4dc6449a30224c5e4fc2afa285938f4e135e098024a77ce3)) when the wallet RPC (`56.rpc.thirdweb.com`) returned **429**. - Confirm deposits with **`waitForTransactionReceipt` on `getEvmClient(sourceChainConfig)`** so status reaches **`success`**, `TransferForm` parses the Deposit log, and navigates to `/transfer/{xchainHashId}`. - Extends **INV-FE-EVM-ALLOWANCE-1** (allowance + balance + receipt waits). Related to #133 / follow-up to !153. ## Test plan - [x] `npm run test:run -- src/hooks/useBridgeDeposit.test.ts` - [x] Pre-commit typecheck/lint - [x] On-chain: deposit tx `0xe1df0e27…` status success, Bridge Deposit event present - [ ] After deploy: BSC vFDUSD → Terra — after approve+deposit, UI should leave “waiting for deposit” and show transfer status / xchain hash (even if MetaMask uses thirdweb)
PlasticDigits commented 2026-07-30 06:12:45 +00:00 (Migrated from gitlab.com)

mentioned in commit f62203b50a

mentioned in commit f62203b50aa585246bc40c0e2af43ea4272464db
PlasticDigits (Migrated from gitlab.com) merged commit f62203b50a into main 2026-07-30 06:12:45 +00:00
Sign in to join this conversation.
No description provided.