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

fix: publicly export GasDuration #1897

Merged

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Sep 27, 2023

GasDuration is used in public API GasTimer::new(duration: &mut GasDuration) and as a public field pub elapsed: GasDuration in GasCharge, however, it's not publicly exported from the crate. It will be helpful for e.g. converting between GasDuration in fvm@3 and fvm@4

This PR tries to fix that by publicly exporting it. Please let me know your feedback, thanks!

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

Merging #1897 (844d5a9) into master (86eb6fb) will increase coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1897      +/-   ##
==========================================
+ Coverage   75.54%   75.55%   +0.01%     
==========================================
  Files         152      152              
  Lines       15106    15106              
==========================================
+ Hits        11412    11414       +2     
+ Misses       3694     3692       -2     
Files Coverage Δ
fvm/src/gas/mod.rs 93.82% <ø> (ø)

... and 1 file with indirect coverage changes

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.

4 participants