• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-smart-account / 16575692575 / 2
94%
main: 94%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2025 05:20PM UTC
Files 42
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2025 05:19PM UTC coverage: 94.479% (-0.007%) from 94.486%
16575692575.2

push

github

web-flow
fix: optimize SafeMath.sub implementation for gas efficiency (#1026)

Optimizes the SafeMath.sub function by removing the unnecessary
temporary variable and directly returning the calculation result. This
change reduces bytecode size and gas consumption while maintaining
identical functionality

Here are the gas measurements:

- Optimized version: 23467 gas for 10 operations
- Unoptimized version: 23597 gas for 10 operations
- Savings: 13 gas per operation

While small, these savings add up across multiple transactions using
SafeMath.sub throughout the codebase

304 of 336 branches covered (90.48%)

Branch coverage included in aggregate %.

449 of 461 relevant lines covered (97.4%)

55.72 hits per line

Source Files on job run-SafeL2 - 16575692575.2
  • Tree
  • List 42
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16575692575
  • 0095f1aa on github
  • Prev Job for on main (#16445269246.1)
  • Next Job for on main (#17400040180.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc