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

ExWeb3 / elixir_ethers / e4c6b2e45dd99500dba5720b99ebfe40cf2f4342
92%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 01:25AM UTC
Jobs 1
Files 44
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 01:24AM UTC coverage: 91.853% (+0.08%) from 91.772%
e4c6b2e45dd99500dba5720b99ebfe40cf2f4342

push

github

web-flow
Add Ethers.get_code/2 and EIP-7702 delegation helpers (#305)

* Add get_code/2 and EIP-7702 delegation helpers

- `Ethers.get_code/2` (+ bang) wraps `eth_getCode` with the same address
  handling and `:block` override as `get_balance/2` and returns the code
  as a binary (`""` for accounts without code). Also batchable as
  `{:get_code, address}` / `{:get_code, address, block: block}`.
- New optional `eth_get_code/3` adapter callback; custom adapters without
  it get `{:error, :not_supported}`.
- `Ethers.Authorization.parse_delegation/1` parses the delegate out of a
  23-byte `0xef0100 ++ address` delegation designator.
- `Ethers.get_delegation/2` (+ bang) combines both, returning the
  delegate or `nil` for accounts without a delegation.

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

* Fix :get_balance requests in Ethers.batch/2

`:get_balance` was missing from `@rpc_actions_map`, so batched balance
requests were sent as the `get_balance` method and failed with
"Method not found".

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

* Compare the delegate with the checksummed deployed address

`Ethers.deployed_address/2` now returns EIP-55 checksummed addresses, so
the delegate returned by `get_delegation/2` must equal it as is.

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>

20 of 21 new or added lines in 2 files covered. (95.24%)

1973 of 2148 relevant lines covered (91.85%)

76.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.51
0.34% lib/ethers.ex
Jobs
ID Job ID Ran Files Coverage
1 e4c6b2e45dd99500dba5720b99ebfe40cf2f4342.1 16 Nov 2026 01:25AM UTC 44
91.85
GitHub Action Run
Source Files on build e4c6b2e45dd99500dba5720b99ebfe40cf2f4342
  • Tree
  • List 44
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e4c6b2e4 on github
  • Prev Build on main (#B4308E9B...)
  • Next Build on main (#C590E562...)
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