Please throw errors coming from wallet as they are
Opened this issue · 1 comments
delivan commented
Currently, when connect
is called and an error is returned from the wallet, a dapp receives only a UserRejectedRequestError
object. However, the reasons for errors returned by the wallet are more diverse.
starknet-react/packages/core/src/connectors/injected.ts
Lines 129 to 147 in b89a2be
To allow the DApp to handle errors appropriately based on their specific cause, I propose that the wallet return the original error to a dapp.
fracek commented
I agree with this, but it will also be a breaking change. Will do that in v4.