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

cowprotocol / contracts / 8096799720
97%

Build:
DEFAULT BRANCH: main
Ran 29 Feb 2024 01:28PM UTC
Jobs 1
Files 22
Run time 1min
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

29 Feb 2024 01:25PM UTC coverage: 97.398%. Remained the same
8096799720

push

github

web-flow
Favor nonce from Safe Multisig api (#75)

If there is a pending transaction in the Safe, the self-sell script
overwrites it when creating the `settle` transaction.
With these changes, the created transaction will use the nonce that is
recommended by the Safe API. This is the same nonce used by the
interface to determine the nonce for the next transaction.

I also sneaked in a change in the parameters, since the script is not
working unless `--to-token` is explicit.

### Test Plan

This is difficult to test as the script only works on mainnet (see #74).
I suggest to see that the api call returns the expected nonce.
For example,
[0xA03be496e67Ec29bC62F01a428683D7F9c204930](https://app.safe.global/transactions/queue?safe=sep:0xA03be496e67Ec29bC62F01a428683D7F9c204930)
is a Safe that right now has a pending transaction, and you can see that
the API output is the expected one:

```sh
curl -X 'GET' \
  'https://safe-client.safe.global/v1/chains/11155111/safes/0xA03be496e67Ec29bC62F01a428683D7F9c204930/nonces' \
  -H 'accept: application/json'
{"currentNonce":10,"recommendedNonce":11}
```

---------

Co-authored-by: Felix Leupold <felixleupold90@gmail.com>

160 of 172 branches covered (93.02%)

Branch coverage included in aggregate %.

364 of 366 relevant lines covered (99.45%)

37.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8096799720.1 29 Feb 2024 01:28PM UTC 0
97.4
GitHub Action Run
Source Files on build 8096799720
Detailed source file information is not available for this build.
  • Back to Repo
  • fbb2bb98 on github
  • Prev Build on main (#8048270935)
  • Next Build on main (#8175589116)
  • Delete
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