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

safe-global / safe-client-gateway / 44772810447
92%

Build:
DEFAULT BRANCH: main
Ran 20 Nov 2026 04:24PM UTC
Jobs 4
Files 1140
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

20 Nov 2026 04:22PM UTC coverage: 92.347% (+0.02%) from 92.331%
44772810447

push

github

web-flow
fix(relay): return 422 for relay calldata that does not decode (#3818)

* fix(relay): reject undecodable calldata with 422

Calldata the relay recognises by selector but cannot decode threw viem
errors (or a TypeError on an empty MultiSend batch), which the route
logger maps to 500. These are now rejected with the existing
InvalidTransferError / InvalidMultiSendError:

- createProxyWithNonce whose initializer is not a decodable setup call
- execTransaction carrying a truncated ERC-20 transfer/transferFrom
- MultiSend whose batch decodes to no transactions
- recovery whose MultiSend batch decodes to no transactions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(relay): keep undecodable-calldata tests at the lowest layer

- Run the public relay 422 case once, not per chain and version
- Keep only mapper-level cases in the mapper spec; per-input decode
  tables stay in the helper spec
- Reword the MultiSend comments: the decoder returns no transactions
  only for an empty batch or one whose first transaction does not decode

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(relay): reject MultiSend batches that decode only in part

The shared MultiSend decoder returns the transactions before the first
one that fails, so a batch cut inside a later transaction header was
validated on its prefix. The relay and recovery paths now re-encode the
decoded transactions and require them to match the whole batch.

The ERC-20 and Safe creation decode catches now log at debug level
instead of discarding the error; responses are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(relay): reject partial MultiSend before choosing a gas payment option

hasRefundingTransaction classified a batch by the transactions that
decoded, so a batch cut after a refunding execTransaction answered 409
or 403 before reaching validation. It now throws InvalidMultiSendError
for a batch that does not decode in full.

Decode failures l... (continued)

5621 of 6294 branches covered (89.31%)

Branch coverage included in aggregate %.

43 of 44 new or added lines in 3 files covered. (97.73%)

1 existing line in 1 file now uncovered.

13819 of 14757 relevant lines covered (93.64%)

372.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.07
2.92% src/modules/relay/domain/relay-transaction-helper.ts

Coverage Regressions

Lines Coverage ∆ File
1
95.21
-0.53% src/modules/safe/domain/safe.repository.ts
Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 44772810447.1 20 Nov 2026 04:24PM UTC 1140
70.34
GitHub Action Run
2 run-integration-tests-1 - 44772810447.2 20 Nov 2026 04:24PM UTC 1140
40.73
GitHub Action Run
3 run-integration-tests-3 - 44772810447.3 20 Nov 2026 04:24PM UTC 1140
47.17
GitHub Action Run
4 run-integration-tests-2 - 44772810447.4 20 Nov 2026 04:24PM UTC 1140
46.43
GitHub Action Run
Source Files on build 44772810447
  • Tree
  • List 1140
  • Changed 16
  • Source Changed 3
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44772810447
  • 99d76613 on github
  • Prev Build on main (#44742663403)
  • Next Build on main (#44774907534)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc