tahowallet/extension

Improve handling of the `Async thunk failed` error shown when sending asset with transfer lock

michalinacienciala opened this issue · 0 comments

The TAHO asset was configured on a contract level on testnet to not allow for transfers between the accounts (with an exception of sending from testertesting.eth).

When trying to send TAHO from non-testertesting.eth account, the transaction doesn't go through (the tx confirmation screen isn't shown, user is directed to token details view) and no information is shown to user explaining what went wrong. In logs, user can see:

logger.ts:208 Async thunk failed {code: 4001, message: 'The user rejected the request.'}

We should handle such case better - show some information to user what has happened.