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

KarpelesLab / libwallet / 24764611415
25%

Build:
DEFAULT BRANCH: master
Ran 22 Apr 2026 07:02AM UTC
Jobs 1
Files 99
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

22 Apr 2026 06:52AM UTC coverage: 20.858% (-0.02%) from 20.88%
24764611415

push

github

MagicalTux
Web3: EIP-2255 permission shape + EVM-only eth_accounts

Two related fixes the test-dapp surfaced:

1. wallet_requestPermissions / wallet_getPermissions emitted
   one permission entry per connected account, each with a
   single address in the caveat value array, AND no
   parentCapability field at all. Per EIP-2255 the wire shape
   is one entry per capability with all authorised addresses
   in the caveat:

     [{
       id: "perm:<host>",
       parentCapability: "eth_accounts",
       invoker: "<host>",
       caveats: [{ type: "restrictReturnedAccounts",
                   value: ["0xa", "0xb", ...] }]
     }]

   The missing parentCapability is why etherscan.io's "Request
   Permissions" button printed "undefined, undefined".

2. eth_accounts returned the Address field of every connected
   account verbatim, including ed25519 (Solana) accounts that a
   dApp may have picked up via chain_switch and accounts whose
   address had been re-derived to "N/A" by an earlier
   UpdateAddressForNetwork on a non-matching chain. Filter both
   server-side (curve != secp256k1, Address == "" / "N/A", or
   non-0x-prefixed) so dApps only ever see well-formed EVM
   addresses. Same filter feeds the new
   buildEthAccountsPermission so the perm + accounts surfaces
   stay in sync.

Both helpers always return [] (not nil) for the empty case so
the JSON wire shape doesn't surprise dApp code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

0 of 37 new or added lines in 1 file covered. (0.0%)

2529 of 12125 relevant lines covered (20.86%)

65.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
37
0.59
-0.01% wltbase/web3.go
Jobs
ID Job ID Ran Files Coverage
1 24764611415.1 22 Apr 2026 07:02AM UTC 99
20.86
GitHub Action Run
Source Files on build 24764611415
  • Tree
  • List 99
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24764611415
  • 617a60b2 on github
  • Prev Build on master (#24764409942)
  • Next Build on master (#24764733374)
  • 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