We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d94f5d commit 846ec64Copy full SHA for 846ec64
3 files changed
src/transaction.rs
@@ -2519,4 +2519,16 @@ mod tests {
2519
assert_eq!(tx.discount_weight(), 2034);
2520
assert_eq!(tx.discount_vsize(), 509);
2521
}
2522
+
2523
+ #[test]
2524
+ fn elip203() {
2525
+ // Check that rust-elements can deserialize tests vector from ELIP203
2526
+ // from
2527
+ // https://github.com/ElementsProject/ELIPs/blob/main/elip-0203.mediawiki
2528
+ let tx3: Transaction = hex_deserialize!(include_str!("../tests/data/elip203_3.hex"));
2529
+ let tx4: Transaction = hex_deserialize!(include_str!("../tests/data/elip203_4.hex"));
2530
+ let max_money = 2_100_000_000_000_000;
2531
+ assert!(tx3.input[0].asset_issuance.amount.explicit().unwrap() > max_money);
2532
+ assert!(tx4.input[0].asset_issuance.inflation_keys.explicit().unwrap() > max_money);
2533
+ }
2534
0 commit comments