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

Publish correct tally completion event values #441

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

Thomasvdam
Copy link
Member

Motivation

Allow indexing the tally logs and gas used attributes.

Explanation of Changes

Turns out we were accidentally shadowing the result variable in the switch statement, which meant that when we assigned result after the statment we used the empty reference with default values.

Testing

Verified that a local node with these changes output the correct events at block #9777 with the (at the time of writing) current planet.

Related PRs and Issues

N.A.

@Thomasvdam Thomasvdam requested review from hacheigriega and a team December 11, 2024 14:31
@Thomasvdam Thomasvdam closed this Dec 11, 2024
@Thomasvdam Thomasvdam deleted the fix/tally-result branch December 11, 2024 20:09
@Thomasvdam Thomasvdam restored the fix/tally-result branch December 11, 2024 20:09
@Thomasvdam Thomasvdam reopened this Dec 11, 2024
@Thomasvdam
Copy link
Member Author

Fat finger, apologies.

Copy link
Member

@hacheigriega hacheigriega left a comment

Choose a reason for hiding this comment

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

wow, time to start checking events

Turns out we were accidentally shadowing the `result` variable in the
switch statement, which meant that when we assigned result after the
statement we used the empty reference with default values.
@Thomasvdam Thomasvdam merged commit 1939f59 into main Dec 12, 2024
8 of 10 checks passed
@Thomasvdam Thomasvdam deleted the fix/tally-result branch December 12, 2024 08:40
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.

3 participants