OffchainLabs / arb-os

ArbOS operating system, to run at Layer 2 on Arbitrum chains. Also a compiler for Mini, the language in which ArbOS is written.
92 stars 21 forks source link

Get L1 gas fees precompile #649

Closed edfelten closed 2 years ago

edfelten commented 2 years ago

This adds a precompile method to get the L1 gas charges paid by the current tx (fixed fee, and calldata fee).

codecov-commenter commented 2 years ago

Codecov Report

Merging #649 (c5d169d) into upgrade-51 (0a7a6a2) will increase coverage by 0.04%. The diff coverage is 85.54%.

@@              Coverage Diff               @@
##           upgrade-51     #649      +/-   ##
==============================================
+ Coverage       75.87%   75.92%   +0.04%     
==============================================
  Files              36       36              
  Lines           20116    20185      +69     
==============================================
+ Hits            15263    15325      +62     
- Misses           4853     4860       +7