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

Make TRO instruction revert on zero coin amount #532

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Jul 27, 2023

Closes #522

This PR also adds a new PanicReason, TransferZeroCoins, for this specific issue. TR instruction previously used NotEnoughBalance for this situation, but it seems highly misleading.

Alternatively we could allow this and modify the spec accordingly.

@Dentosal Dentosal added bug Something isn't working breaking A breaking api change fuel-vm Related to the `fuel-vm` crate. labels Jul 27, 2023
@Dentosal Dentosal self-assigned this Jul 27, 2023
@Dentosal Dentosal marked this pull request as ready for review July 27, 2023 06:36
@Dentosal Dentosal requested a review from a team July 27, 2023 06:36
@Dentosal Dentosal added this pull request to the merge queue Jul 27, 2023
Merged via the queue into master with commit 0a190aa Jul 27, 2023
31 checks passed
@Dentosal Dentosal deleted the dento/tro-revert-on-zero-amount branch July 27, 2023 19:38
@xgreenx xgreenx mentioned this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking api change bug Something isn't working fuel-vm Related to the `fuel-vm` crate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TRO opcode does not revert when amount=0
3 participants