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

safe-global / safe-modules / 6721220570
85%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2023 02:51PM UTC
Jobs 1
Files 3
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

01 Nov 2023 02:50PM UTC coverage: 100.0%. Remained the same
6721220570

push

github

web-flow
Rename `requiredPrefund` to `missingAccountFunds` (#124)

This PR applies a minor suggestion resulting from the audit where the
`validateUserOp` parameter names (specifically for the required account
fund transfer to the entrypoint) did not exactly match the name from the
ERC.

Note that the test entrypoint was slightly adjusted to more closely
model the behaviour of the [reference
entrypoint](https://github.com/eth-infinitism/account-abstraction/blob/94cf025ef/contracts/core/EntryPoint.sol#L421-L427),
where left-over user balances are considered when computing the
`missingAccountFunds` to pass into the `validateUserOp` call:

```solidity
            uint256 missingAccountFunds = 0;
            if (paymaster == address(0)) {
                uint256 bal = balanceOf(sender);
                missingAccountFunds = bal > requiredPrefund
                    ? 0
                    : requiredPrefund - bal;
            }
```

I noticed this while looking for instances of `requiredPrefund` in the
codebase. All tests continue to pass 🎉.

Another minor change, I noticed that `prettier .` was not picking up
`.sol` files anymore, so I adjusted the NPM scripts to explicitly format
and check them.

18 of 18 branches covered (100.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

26 of 26 relevant lines covered (100.0%)

13.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6721220570.1 01 Nov 2023 02:51PM UTC 3
100.0
GitHub Action Run
Source Files on build 6721220570
  • Tree
  • List 3
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 017c4d9c on github
  • Prev Build on master (#6721187911)
  • Next Build on master (#6725525415)
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

© 2025 Coveralls, Inc