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

KarpelesLab / libwallet / 24782637253
25%

Build:
DEFAULT BRANCH: master
Ran 22 Apr 2026 02:10PM 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 02:01PM UTC coverage: 20.735% (-0.1%) from 20.846%
24782637253

push

github

MagicalTux
Web3: unify change_network / add_and_switch_network / chain_switch

Every network switch — whether an explicit
wallet_switchEthereumChain call or an implicit cross-family
action — now flows through a single ChainSwitchRequest. The
payload distinguishes the two shapes via field population:

  • targetNetwork set (+ isNewNetwork bool): dApp named a
    specific chain. UI shows a confirm sheet. isNewNetwork=true
    means the chain isn't in the wallet yet and approval
    implies Add+Switch.
  • candidateNetworks populated, targetNetwork null: cross-
    family action. UI shows a network+account picker.

CandidateAccounts is always populated so the user picks which
account to bind to the dApp on the chosen chain, regardless of
shape.

Server-side refactor:
- requestChainSwitchForTarget(...) drives the target path
- requestChainSwitchPicker(...) drives the picker path
- applyChainSwitchSelection(...) shared post-approval: Save
  (if isNew) + SetCurrent + ensureConnected
- request.go chain_switch approve case now decodes
  ChainSwitchValue and writes a uniform result map the
  callers unpack

BREAKING CHANGE for Dart consumers:
  - ChangeNetworkRequest / AddAndSwitchNetworkRequest are
    removed. Pattern-match on ChainSwitchRequest instead and
    branch on req.targetNetwork != null.
  - AddNetworkRequest is unchanged (pure add, no switch — a
    distinct intent).

Webview integration guide updated with the unified switch
example covering both shapes.

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

0 of 142 new or added lines in 3 files covered. (0.0%)

4 existing lines in 2 files now uncovered.

2529 of 12197 relevant lines covered (20.73%)

65.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
85
0.0
0.0% wltbase/web3_chainswitch.go
44
2.49
-0.18% wltbase/request.go
13
0.61
0.03% wltbase/web3.go

Coverage Regressions

Lines Coverage ∆ File
3
0.0
0.0% wltbase/web3_chainswitch.go
1
2.49
-0.18% wltbase/request.go
Jobs
ID Job ID Ran Files Coverage
1 24782637253.1 22 Apr 2026 02:10PM UTC 99
20.73
GitHub Action Run
Source Files on build 24782637253
  • Tree
  • List 99
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24782637253
  • 7dfb4a4f on github
  • Prev Build on master (#24766251964)
  • Next Build on master (#24784254701)
  • 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