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

safe-global / safe-modules / 6721220570 / 1
85%
master: 85%

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

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 %.

26 of 26 relevant lines covered (100.0%)

13.46 hits per line

Source Files on job 6721220570.1
  • 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 Build 6721220570
  • 017c4d9c on github
  • Prev Job for on master (#6721187911.1)
  • Next Job for on master (#6725525415.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