the-compact icon indicating copy to clipboard operation
the-compact copied to clipboard

Utility lib

Open mgretzke opened this issue 2 months ago • 1 comments

Added the UtilityLib:

  • Allows checking if the current chain supports eip-1153 (transient storage).
  • Adds settledBalanceOf to retrieve an ERC6909 balance from the compact. The function reverts in case the compacts reentrancy guard is active.

mgretzke avatar Nov 05 '25 12:11 mgretzke

Codecov Report

:x: Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 98.20%. Comparing base (ac25e50) to head (aa36d94).

Files with missing lines Patch % Lines
src/utility/Utility.sol 87.87% 4 Missing :warning:
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
- Coverage   98.39%   98.20%   -0.19%     
==========================================
  Files          41       42       +1     
  Lines        1809     1842      +33     
  Branches       99      108       +9     
==========================================
+ Hits         1780     1809      +29     
- Misses         29       33       +4     
Files with missing lines Coverage Δ
src/utility/Utility.sol 87.87% <87.87%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ac25e50...aa36d94. Read the comment docs.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Nov 05 '25 12:11 codecov-commenter