forked from solana-labs/solana-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow GC to close empty associated accounts (solana-labs#2554)
* Allow GC to close empty associated accounts Empty associated accounts will only be closed in case the new flag del_associated_accounts is set. Otherwise behaviour is as before. Useage: spl-token gc --del_associated_accounts * use kebab-case Co-authored-by: Jon Cinque <[email protected]> * align coding style Thank you jon! * Add sanity check * correcting amount check before closing * formatting correcly using cargo fmt * changing sanity check to assert! Co-authored-by: Sack <none> Co-authored-by: Jon Cinque <[email protected]> Co-authored-by: Mark Sackerberg <Contact@Discord>
- Loading branch information
1 parent
fcbc0d3
commit 81c90f5
Showing
1 changed file
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters