mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-08 21:43:48 +00:00
cl: verify bundle isn't balanced with just one unbalanced partial tx
This commit is contained in:
parent
d6d3dcab12
commit
913064da39
@ -119,6 +119,10 @@ mod test {
|
||||
|
||||
let bundle = Bundle::from_witness(bundle_witness.clone());
|
||||
|
||||
assert!(!bundle.is_balanced(
|
||||
-nmo_10_in.balance_blinding - eth_23_in.balance_blinding
|
||||
+ crv_4840_out.balance_blinding
|
||||
));
|
||||
assert_eq!(
|
||||
bundle.balance(),
|
||||
crate::balance::balance(4840, "CRV", crv_4840_out.balance_blinding)
|
||||
|
Loading…
x
Reference in New Issue
Block a user