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

close-account native: reduce target account balance to 0 #332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dsctt
Copy link

@dsctt dsctt commented Dec 1, 2024

If I understand correctly, closing an account involves reducing the balance to exactly zero. The native close-account example currently reduces it to a non-zero amount--calculating the remaining rent after reducing the data_len to zero and reducing the balance by that amount, returning it to the payer. This PR reduces it to exactly zero and adds relevant tests.

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

Successfully merging this pull request may close these issues.

1 participant