Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants