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

[DO NOT MERGE] Workbench gas traces #1962

Closed

Conversation

aarshkshah1992
Copy link

@aarshkshah1992 aarshkshah1992 commented Jan 18, 2024

PR to showcase the changes we had to make to FVM 4.0 to use the fvm-workbench with built-in Actors itests so we can get traces for event emission gas charges.

@aarshkshah1992 aarshkshah1992 marked this pull request as draft January 18, 2024 14:46
@aarshkshah1992 aarshkshah1992 changed the title [DO NOT MERGE ONLY] Workbench gas traces [DO NOT MERGE] Workbench gas traces Jan 18, 2024
fvm/src/kernel/default.rs Show resolved Hide resolved
@@ -417,13 +417,13 @@ where
sender_state.code = *self.builtin_actors().get_ethaccount_code();
}

if !sender_is_valid {
/* if !sender_is_valid {
Copy link
Member

Choose a reason for hiding this comment

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

You should either:

  1. Send from an account that actually exists, has enough funds to cover gas, etc.
  2. Send from the "system" but apply the message as "implicit".

Copy link
Member

Choose a reason for hiding this comment

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

the instances of this that I encountered are taken care of here since they were all from cron: filecoin-project/builtin-actors#1506

@aarshkshah1992
Copy link
Author

@Stebalien This PR was only yo showcase the missing bits in workbench. Closing it as we don't need to merge it.

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