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

KarpelesLab / libwallet / 24394463890
25%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 10:47AM UTC
Jobs 1
Files 67
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 Apr 2026 10:38AM UTC coverage: 25.649% (+0.01%) from 25.638%
24394463890

push

github

MagicalTux
fix: handle BtcAmount serialization + guard NFT type assertions

Three lurking bugs found by audit after the modchain_assets balance fix:

1. wlttx/bitcoin.go: bitcoinTxo.Amt and bitcoinTxoResp.Balance were
   declared as int64 but modchain serializes them via outscript.BtcAmount
   (decimal string format like "0.00000001"). Same root cause as the
   modchain_assets bug. Switch to outscript.BtcAmount type — its
   UnmarshalJSON handles both decimal and integer forms.

2. wltnet/network.go: refactored bitcoinBalance to also use BtcAmount
   directly instead of the json.Number + big.Float fallback. Cleaner.

3. wltnet/nft.go: unsafe type assertions on modchain_assets response
   (asset["asset"].(string), asset["address"].(string), etc) would
   panic if any field was missing or the wrong type. Replace with
   comma-ok form and skip malformed entries.

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

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

1 existing line in 1 file now uncovered.

1878 of 7322 relevant lines covered (25.65%)

3.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
0.0
0.0% wltnet/nft.go
6
46.62
0.99% wltnet/network.go
2
0.0
0.0% wlttx/bitcoin.go

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% wltnet/nft.go
Jobs
ID Job ID Ran Files Coverage
1 24394463890.1 14 Apr 2026 10:47AM UTC 67
25.65
GitHub Action Run
Source Files on build 24394463890
  • Tree
  • List 67
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24394463890
  • f4de18e6 on github
  • Prev Build on master (#24394026285)
  • Next Build on master (#24396648933)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc