Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Suggestion : disable transfering tokens between same token accounts #6867

Open
Nagaprasadvr opened this issue Jun 18, 2024 · 2 comments
Open

Comments

@Nagaprasadvr
Copy link

Its a little bit confusing that we can transfer spl tokens between same token accounts (src and dest is the same)
Better to add a check and throw an error

@chudleigh2
Copy link

I actually find the ability to send to the same account quite useful. With a limited amount of Devnet tokens available, it is often useful to send them back to the source account to be reused.

You can continually test a program without running out (well - you would run out eventually but it would take a long time)

@joncinque
Copy link
Contributor

Thanks for coming forward with a suggestion! The self-transfer behavior is very much a desired feature, so I wouldn't make the change. Either way, I'll leave the issue open in case anyone else wants to chime in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants