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

safe-global / safe-modules / 7887095823
77%
master: 85%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 13 Feb 2024 01:17PM UTC
Jobs 1
Files 11
Run time 1s
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

13 Feb 2024 01:15PM UTC coverage: 76.923%. Remained the same
7887095823

push

github

web-flow
Sign All Gas Limit and Price Parameters (#261)

Fixes #250 

This PR changes the `SafeOperation` type to include ALL gas parameters
for signing, instead of packing them. This ensures the maximum amount of
data is available to the user when signing user operations, instead of
trusting gas parameters from a Dapp.

Note a subtle change in the order of the "fee per gas" fields, this was
done to match the order in the `PackedUserOperation` struct, as well as
the order in EIP-1559 transactions. I figured, since we are changing the
signing format anyway (notice the different integer types), this
wouldn't be a big deal.

Additionally, we have a new test that verifies that `safeOp` hashes are
computed off-chain in the same way they are computed on-chain. This is
to catch issues with field orders being slightly different in the
`EncodedSafeOp` struct that we would otherwise miss. Notably, the "fee
per gas" parameters are always set to the same value, and our existing
test suite was not able to catch swapped order in `EncodedSafeOp`
fields.

39 of 66 branches covered (59.09%)

Branch coverage included in aggregate %.

131 of 155 relevant lines covered (84.52%)

8.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7887095823.1 13 Feb 2024 01:17PM UTC 0
76.92
GitHub Action Run
Source Files on build 7887095823
Detailed source file information is not available for this build.
  • Back to Repo
  • 54a960b7 on github
  • Prev Build on feature/entrypoint-v0.7 (#7870672097)
  • Next Build on feature/entrypoint-v0.7 (#7930678738)
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