@@ -341,10 +341,10 @@ fn test_list_owned_txouts() {
341341 assert_eq ! (
342342 balance,
343343 Balance {
344- immature: 70000 , // immature coinbase
345- trusted_pending: 25000 , // tx3 + tx5
346- untrusted_pending: 20000 , // tx4
347- confirmed: 0 // Nothing is confirmed yet
344+ immature: Amount :: from_sat ( 70000 ) , // immature coinbase
345+ trusted_pending: Amount :: from_sat ( 25000 ) , // tx3 + tx5
346+ untrusted_pending: Amount :: from_sat ( 20000 ) , // tx4
347+ confirmed: Amount :: ZERO // Nothing is confirmed yet
348348 }
349349 ) ;
350350 }
@@ -376,10 +376,10 @@ fn test_list_owned_txouts() {
376376 assert_eq ! (
377377 balance,
378378 Balance {
379- immature: 70000 , // immature coinbase
380- trusted_pending: 25000 , // tx3 + tx5
381- untrusted_pending: 20000 , // tx4
382- confirmed: 0 // Nothing is confirmed yet
379+ immature: Amount :: from_sat ( 70000 ) , // immature coinbase
380+ trusted_pending: Amount :: from_sat ( 25000 ) , // tx3 + tx5
381+ untrusted_pending: Amount :: from_sat ( 20000 ) , // tx4
382+ confirmed: Amount :: ZERO // Nothing is confirmed yet
383383 }
384384 ) ;
385385 }
@@ -408,10 +408,10 @@ fn test_list_owned_txouts() {
408408 assert_eq ! (
409409 balance,
410410 Balance {
411- immature: 70000 , // immature coinbase
412- trusted_pending: 15000 , // tx5
413- untrusted_pending: 20000 , // tx4
414- confirmed: 10000 // tx3 got confirmed
411+ immature: Amount :: from_sat ( 70000 ) , // immature coinbase
412+ trusted_pending: Amount :: from_sat ( 15000 ) , // tx5
413+ untrusted_pending: Amount :: from_sat ( 20000 ) , // tx4
414+ confirmed: Amount :: from_sat ( 10000 ) // tx3 got confirmed
415415 }
416416 ) ;
417417 }
@@ -439,10 +439,10 @@ fn test_list_owned_txouts() {
439439 assert_eq ! (
440440 balance,
441441 Balance {
442- immature: 70000 , // immature coinbase
443- trusted_pending: 15000 , // tx5
444- untrusted_pending: 20000 , // tx4
445- confirmed: 10000 // tx1 got matured
442+ immature: Amount :: from_sat ( 70000 ) , // immature coinbase
443+ trusted_pending: Amount :: from_sat ( 15000 ) , // tx5
444+ untrusted_pending: Amount :: from_sat ( 20000 ) , // tx4
445+ confirmed: Amount :: from_sat ( 10000 ) // tx1 got matured
446446 }
447447 ) ;
448448 }
@@ -455,10 +455,10 @@ fn test_list_owned_txouts() {
455455 assert_eq ! (
456456 balance,
457457 Balance {
458- immature: 0 , // coinbase matured
459- trusted_pending: 15000 , // tx5
460- untrusted_pending: 20000 , // tx4
461- confirmed: 80000 // tx1 + tx3
458+ immature: Amount :: ZERO , // coinbase matured
459+ trusted_pending: Amount :: from_sat ( 15000 ) , // tx5
460+ untrusted_pending: Amount :: from_sat ( 20000 ) , // tx4
461+ confirmed: Amount :: from_sat ( 80000 ) // tx1 + tx3
462462 }
463463 ) ;
464464 }
0 commit comments