global: fixes

This commit is contained in:
nym21
2025-11-29 23:33:48 +01:00
parent 25c697cca1
commit 35e567cfb6
8 changed files with 51 additions and 37 deletions

View File

@@ -75,8 +75,8 @@ impl Bytes for SupplyState {
fn from_bytes(bytes: &[u8]) -> vecdb::Result<Self> {
Ok(Self {
utxo_count: u64::from_bytes(&bytes[0..])?,
value: Sats::from_bytes(&bytes[8..])?,
utxo_count: u64::from_bytes(&bytes[0..8])?,
value: Sats::from_bytes(&bytes[8..16])?,
})
}
}