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

feat: add new fields to message trace for supporting new trace api #1823

Merged
merged 5 commits into from
Aug 23, 2023

Conversation

fridrik01
Copy link
Contributor

@fridrik01 fridrik01 commented Jul 27, 2023

Related: #1793 and https://github.com/filecoin-project/fvm-pm/issues/613

This PR adds the following fields to ExecutionEvent which are required to confirm to the trace api spec:

  • gas_limit: The gas provided by the sender
  • read_only: Whether the call is read only or not

@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

Merging #1823 (f53fa5f) into master (bcfc903) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1823      +/-   ##
==========================================
+ Coverage   75.21%   75.22%   +0.01%     
==========================================
  Files         149      149              
  Lines       14592    14600       +8     
==========================================
+ Hits        10975    10983       +8     
  Misses       3617     3617              
Files Changed Coverage Δ
fvm/src/trace/mod.rs 100.00% <ø> (ø)
fvm/src/call_manager/default.rs 88.69% <100.00%> (+0.14%) ⬆️

@fridrik01 fridrik01 requested review from a team and Stebalien and removed request for a team July 27, 2023 14:10
@fridrik01 fridrik01 marked this pull request as ready for review July 27, 2023 14:11
@fridrik01 fridrik01 changed the title [WIP] feat: add new fields to message trace for supporting new trace api feat: add new fields to message trace for supporting new trace api Jul 27, 2023
Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

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

FYI @alexytsu

fvm/src/trace/mod.rs Show resolved Hide resolved
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

One change, but then feel free to dismiss my review and merge it.

fvm/src/call_manager/default.rs Show resolved Hide resolved
@Stebalien Stebalien merged commit 9e2b2af into master Aug 23, 2023
12 checks passed
@Stebalien Stebalien deleted the traceapi-new-fields branch August 23, 2023 00:38
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.

5 participants