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

KarpelesLab / libwallet / 27926027683
24%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2026 02:38AM UTC
Jobs 1
Files 128
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 Jun 2026 02:35AM UTC coverage: 24.053% (+0.09%) from 23.962%
27926027683

push

github

MagicalTux
wltswap/okx: decode Solana tx.data as base58 or base64 by validating structure

OKX's DEX aggregator /swap endpoint returns Solana tx.data base58-encoded,
but okxDecodeSolanaTxData only ran it through base64. Since base58's alphabet
is a subset of base64's, a base64 decode of a base58 payload SUCCEEDS but
yields garbage — whose leading byte was read as a 79-signature count,
surfacing in the field as:

  LibwalletException(500): sign okx solana transaction: signatures truncated:
  declared 79, tx only 708 bytes

Some routes do return genuine base64 (the earlier "illegal base64 at input
1096" case had real -/_ chars, which base58 never contains), so both
encodings occur depending on the route.

Decode under both schemes and return the candidate that parses as a
structurally valid Solana transaction via the new looksLikeSolanaTx
(numSigs >= 1 and sigsEnd < len). base58 decode only succeeds on the base58
alphabet, so genuine base64 payloads never yield a false base58 candidate;
the structural check cleanly distinguishes a correct decode (numSigs=1,
sigsEnd=65 < 708) from its garbage base64 twin (numSigs=79, sigsEnd >> len).

Test now covers base58 alongside all four base64 variants using a
structurally-valid 1.1 KB tx blob.

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

30 of 35 new or added lines in 2 files covered. (85.71%)

4520 of 18792 relevant lines covered (24.05%)

100.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
41.05
3.7% wltswap/solana_util.go
1
28.5
3.08% wltswap/okx.go
Jobs
ID Job ID Ran Files Coverage
1 27926027683.1 22 Jun 2026 02:38AM UTC 128
24.05
GitHub Action Run
Source Files on build 27926027683
  • Tree
  • List 128
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27926027683
  • c0f52ee9 on github
  • Prev Build on master (#27812745427)
  • Next Build on master (#27926086883)
  • 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