Skip to content
New issue

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

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

Already on GitHub? # to your account

Always append a result receipt on revert. #288

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

adlerjohn
Copy link
Contributor

instead of only when in an external context

@adlerjohn adlerjohn added bug Something isn't working comp:FVM Component: FuelVM labels Mar 3, 2022
@adlerjohn adlerjohn requested a review from Voxelot March 3, 2022 01:42
@adlerjohn adlerjohn self-assigned this Mar 3, 2022
@Voxelot
Copy link
Member

Voxelot commented Mar 3, 2022

Currently the VM automatically appends the ScriptResult receipt at the end of executing any kind of script, it's not handled within the opcode impl itself. This is because we need to ensure that all scripts report the gas used.

@adlerjohn adlerjohn merged commit 6e5bec3 into master Mar 3, 2022
@adlerjohn adlerjohn deleted the adlerjohn/revert-result-receipt-always branch March 3, 2022 20:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working comp:FVM Component: FuelVM
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants