keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

redemption with invalid address #368

Open knarz opened 3 years ago

knarz commented 3 years ago

Description:

Entering an address into the What was your TDT ID? field that is not an actual deposit and hitting redeem gives no visual indication that the address is invalid but an error is printed in the console.

console-history.js:74 Error: Could not find creation event for deposit at address 0xaF3582B6DC3c6Cbf78D02764B618371Aa05abb46.
    at Deposit.js:351
    at f (runtime.js:63)
    at Generator._invoke (runtime.js:293)
    at Generator.next (runtime.js:118)
    at n (asyncToGenerator.js:3)
    at s (asyncToGenerator.js:25)

Steps to reproduce the behavior:

  1. Go to https://dapp.tbtc.network/redeem
  2. Enter any address that is not a deposit
  3. Enter a btc address
  4. submit

Expected behavior:

Displaying an error to indicate that the deposit address is invalid