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

KarpelesLab / libwallet / 25848034620
24%

Build:
DEFAULT BRANCH: master
Ran 14 May 2026 07:42AM UTC
Jobs 1
Files 118
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

14 May 2026 07:35AM UTC coverage: 21.389% (+0.03%) from 21.36%
25848034620

push

github

MagicalTux
wltswap: strip Asset.Key prefix from tokenIn/tokenOut addresses

Hosts pipe Asset.Key directly into TokenRef.Address — the prefixed
"<type>.<chainId>.<mint>" form Asset:list returns. The aggregators
only accept bare mints / contracts, so Jupiter / 1inch rejected the
qualified strings:

  HTTP 400: {"error":"Invalid outputMint"}
  outputMint=solana.mainnet.EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Normalise at the swap.go entry points (swapQuote, swapMaxSpendable)
so the prefix never reaches the adapter / aggregator wire. The
NATIVE sentinel works in either form. Bare addresses pass through
unchanged; the round-trip is a no-op on those.

solanaNativeMintOrAddr and oneInchTokenOrSentinel also strip the
prefix as a belt-and-suspenders so the bug can't reappear via a
future adapter that takes a TokenRef.Address without going through
the swap.go entry.

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

7 of 11 new or added lines in 3 files covered. (63.64%)

3499 of 16359 relevant lines covered (21.39%)

115.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
13.87
-0.21% wltswap/swap.go
Jobs
ID Job ID Ran Files Coverage
1 25848034620.1 14 May 2026 07:42AM UTC 118
21.39
GitHub Action Run
Source Files on build 25848034620
  • Tree
  • List 118
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25848034620
  • 21503198 on github
  • Prev Build on master (#25847618302)
  • Next Build on master (#25848613067)
  • 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