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

ExWeb3 / elixir_ethers / 79817d1e01b7a6a8ed9494647b4e29236a328d21
92%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 06:19AM UTC
Jobs 1
Files 46
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

16 Nov 2026 06:18AM UTC coverage: 92.236% (+0.1%) from 92.09%
79817d1e01b7a6a8ed9494647b4e29236a328d21

push

github

web-flow
Return Ethers.Transaction.Unknown for unregistered transaction types (#308)

* Return Ethers.Transaction.Unknown for unregistered transaction types

Ethers.Transaction.from_rpc_map/1, and so Ethers.get_transaction/2 and
the batch :get_transaction action, returned {:error, :unsupported_type}
for any transaction type without a registered module. On L2s such types
are common (OP-stack deposit transactions are in every block), so code
scanning blocks or looking up arbitrary hashes could not read them.

Such transactions now decode into the read-only Ethers.Transaction.Unknown
passthrough struct: the numeric type id, the common fields (hash, from,
to, nonce, value, gas, input, chain_id) and block metadata decoded where
present, and the original RPC map in raw for type specific fields. Fields
with values that cannot be decoded are left nil instead of failing the
lookup. Encoding, hashing and to_rpc_map/1 raise an ArgumentError naming
the type. Registered types decode as before, and a type that is not a hex
quantity returns {:error, :invalid_type}.

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

* Document Ethers.Transaction.Unknown in the changelog and upgrade guide

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

* State that :unsupported_type is no longer returned in the upgrade guide

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

* Checksum Unknown from and to addresses in any input casing

Align Ethers.Transaction.Unknown with the library rule that every
returned address is EIP-55 checksummed: accept the 0X prefix like
Ethers.Utils.maybe_checksum_address/1 does, and test that from and to
come back checksummed whatever casing the node uses. Malformed values
still leave the field nil, with the original value kept ... (continued)

42 of 43 new or added lines in 2 files covered. (97.67%)

2079 of 2254 relevant lines covered (92.24%)

101.3 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.75
lib/ethers/transaction/unknown.ex
Jobs
ID Job ID Ran Files Coverage
1 79817d1e01b7a6a8ed9494647b4e29236a328d21.1 16 Nov 2026 06:19AM UTC 46
92.24
GitHub Action Run
Source Files on build 79817d1e01b7a6a8ed9494647b4e29236a328d21
  • Tree
  • List 46
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 79817d1e on github
  • Prev Build on main (#FCB5F48E...)
  • Next Build on main (#C49B57BB...)
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