Skip to content

Conversation

@pgherveou
Copy link
Contributor

@pgherveou pgherveou commented Dec 18, 2025

When an eth transaction succeed we refund the pre-charged revert_event.
The refund should be done on the base weight and not the weight_consumed, as the latest could be lower than the cost of the revert_event

Copy link
Contributor

@TorstenStueber TorstenStueber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't really make a difference, does it? output.weight_consumed and base_call_weight are only used in dispatch_result, where they are simply added.

Nevermind, I saw your description. Makes sense!

@pgherveou
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

@pgherveou pgherveou enabled auto-merge December 19, 2025 14:38
@pgherveou pgherveou added the T7-smart_contracts This PR/Issue is related to smart contracts. label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants