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

KarpelesLab / libwallet / 28349713075
25%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2026 05:03AM UTC
Jobs 1
Files 131
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

29 Jun 2026 05:00AM UTC coverage: 23.6% (-0.05%) from 23.651%
28349713075

push

github

MagicalTux
wlttx: resolve the MAX amount sentinel on native Solana sends

Amount.max(decimals) (the {"v":"MAX"} sentinel) was only resolved for EVM
(resolveEvmMaxAmount); on Solana it was dropped — Sign()==0 made Validate
reject it as "invalid amount", and even past that signAndSendSolana hit a
nil Value(). So hosts had to precompute the max client-side, which is the
class of bug that produced an amount scaled by 10^9.

- Let the MAX sentinel through Validate's amount gate for transfer /
  solana_transfer (IsMax() legitimately has Sign()==0).
- preflightSolanaNativeSend resolves it in place to balance - fee - rent
  via computeSolanaMaxSendable (same as Transaction:maxSendable) using the
  real priority-inclusive fee, so the signer sends a concrete lamport value.
- Fail clearly for the MAX paths that aren't wired yet (ERC-20, SPL) instead
  of nil-deref'ing the sentinel.

Hosts can now pass Amount.max(9) as a native-SOL Transaction.amount and let
libwallet resolve it at build time — no client-side scaling, no quote->send
race.

Also adds the 0.4.71 CHANGELOG entry (covers this + the swap base58 fix).

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

0 of 34 new or added lines in 2 files covered. (0.0%)

118 existing lines in 2 files now uncovered.

4748 of 20119 relevant lines covered (23.6%)

94.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
2.81
-0.2% wlttx/preflight.go
17
0.0
0.0% wlttx/transaction.go

Coverage Regressions

Lines Coverage ∆ File
116
23.27
-0.74% wltswap/okx.go
2
2.81
-0.2% wlttx/preflight.go
Jobs
ID Job ID Ran Files Coverage
1 28349713075.1 29 Jun 2026 05:03AM UTC 131
23.6
GitHub Action Run
Source Files on build 28349713075
  • Tree
  • List 131
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28349713075
  • 92c637e8 on github
  • Prev Build on master (#28299969318)
  • Next Build on master (#28349920798)
  • 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