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

ExWeb3 / elixir_ethers / ed9c85e9a0c21ebbe3a3ba82cccdd2d9b893aef2
92%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2026 08:29PM UTC
Jobs 1
Files 42
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

15 Nov 2026 08:28PM UTC coverage: 90.87% (+0.3%) from 90.523%
ed9c85e9a0c21ebbe3a3ba82cccdd2d9b893aef2

push

github

web-flow
Unify transaction new/1 validation and accept pre-EIP-155 legacy transactions (#300)

* Unify transaction new/1 validation and accept pre-EIP-155 legacy transactions

- `Legacy.new/1` accepts a missing or nil `chain_id`, so `from_rpc_map/1` and
  `Ethers.get_transaction/2` return unprotected (pre-EIP-155) legacy
  transactions. Transactions sent with a signer still get `chain_id`
  auto-filled.
- All transaction types validate through shared helpers: a missing required
  field returns `{:error, :missing_<field>}` instead of raising `KeyError`,
  and `Eip1559.new/1` now validates `to` like the other types.
- `Eip4844.new/1` requires `to` and at least one blob versioned hash.
- `Eip7702.new/1` validates every signed authorization: the authorization
  tuple (as `Authorization.new/1` does), `signature_y_parity` in 0..1 and
  binary `r`/`s`. `Authorization.new/1` bounds `chain_id` to `< 2**256`.

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

* Validate access lists and blob versioned hash sizes in transaction new/1

- Every type with an access list (EIP-2930, EIP-1559, EIP-4844, EIP-7702)
  requires `[[<<address::binary-20>>, [<<key::binary-32>>, ...]], ...]` and
  returns `{:error, :invalid_access_list}` otherwise, instead of failing
  later in RLP encoding (or not at all).
- `Eip4844.new/1` requires each blob versioned hash to be a 32-byte binary
  (`{:error, :invalid_blob_versioned_hashes}`).

`Transaction.from_rpc_map/1` must hand `new/1` decoded access lists and
blob versioned hashes for fetched transactions to pass this validation.

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

* Add changelog and upgrading guide entries for the transaction validation changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012hqvX8DbbP3mgXy5hVEDc6

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

58 of 58 new or added lines in 7 files covered. (100.0%)

1 existing line in 1 file now uncovered.

1881 of 2070 relevant lines covered (90.87%)

60.56 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
91.38
3.14% lib/ethers/transaction/eip7702.ex
Jobs
ID Job ID Ran Files Coverage
1 ed9c85e9a0c21ebbe3a3ba82cccdd2d9b893aef2.1 15 Nov 2026 08:29PM UTC 42
90.87
GitHub Action Run
Source Files on build ed9c85e9a0c21ebbe3a3ba82cccdd2d9b893aef2
  • Tree
  • List 42
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ed9c85e9 on github
  • Prev Build on main (#730F5C54...)
  • Next Build on main (#9A0C88C1...)
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