rusk-wallet: Ask user to confirm if they send to their own address #2959
Labels
module:rusk-wallet
Issues related to rusk wallet
type:enhancement
Issues concerning code or feature improvement (performance, refactoring, etc)
Summary
It is possible for users to send DUSK to their own address. For certain use cases, like merging notes and posting metadata on-chain through a memo, this can be valid to do. If user's do send funds to themselves without this as explicit intent however, they will just be deducted the gas fee. It would therefor be helpful to warn the user if they're sending funds to their own address.
Possible solution design or implementation
We can take multiple approaches, but the simplest would be to check whether the sender and receiver are the same in interactive mode, and prompting the user to confirm if this is what they intended to do.
The text was updated successfully, but these errors were encountered: