Psychedelic / plug

Plug is a browser extension for users of the Internet Computer that allows you to access your ICP, Cycles, and other tokens as well as log into IC apps with one click.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle Send Errors

riveign opened this issue · comments

Description

We want to handle the different errors that may occur during a transaction, right now we are only showing that there has been an error while we know there is more information to show to the user and to us so in this eventuality we can know what happened.

  • We need to map all the errors that can happen during a send
  • Create a handler for them in the send flow
  • Display a human readable error with an extra error code

Possible errors:

Insufficient balance #100

IC Error #200

  • .
  • .

Canister Trap #300

  • Register dip20 token which don’t respect the send interface - Register token don't respect the interface - 300
  • Register dip20 token which don’t respect the send interface - Canister out of cycles - 301
  • Insufficient Balance - InsufficientBalance | InsufficientFund - 100

Raw Error #400

Unknown error #600

  • .