@@ -107,13 +107,7 @@ describe('Tao Move Stake Builder', function () {
107107
108108 // Verify transaction explanation
109109 const explanation = tx . explainTransaction ( ) ;
110- explanation . should . have . properties ( [ 'outputs' , 'outputAmount' , 'changeAmount' , 'fee' ] ) ;
111- explanation . outputs . should . have . length ( 1 ) ;
112- explanation . outputs [ 0 ] . should . deepEqual ( {
113- address : '5Ffp1wJCPu4hzVDTo7XaMLqZSvSadyUQmxWPDw74CBjECSoq' ,
114- amount : '9007199254740995' ,
115- tokenName : utils . getTaoTokenBySubnetId ( '1' ) . name ,
116- } ) ;
110+ explanation . should . have . properties ( [ 'outputAmount' , 'changeAmount' , 'fee' ] ) ;
117111 } ) ;
118112
119113 it ( 'should validate required fields' , function ( ) {
@@ -154,9 +148,6 @@ describe('Tao Move Stake Builder', function () {
154148 txJson . originNetuid . should . equal ( '1' ) ;
155149 txJson . destinationNetuid . should . equal ( '2' ) ;
156150 txJson . alphaAmount . should . equal ( '1000000000000' ) ;
157-
158- const explanation = tx . explainTransaction ( ) ;
159- explanation . outputs [ 0 ] . tokenName . should . equal ( 'ttao:onion' ) ;
160151 } ) ;
161152 } ) ;
162153
@@ -468,11 +459,8 @@ describe('Tao Move Stake Builder', function () {
468459 const tx = await builder . build ( ) ;
469460 const explanation = tx . explainTransaction ( ) ;
470461
471- explanation . should . have . properties ( [ 'outputs' , 'outputAmount' , 'changeAmount' , 'fee' , 'type' ] ) ;
472- explanation . outputs . should . have . length ( 1 ) ;
473- explanation . outputs [ 0 ] . should . have . properties ( [ 'address' , 'amount' , 'tokenName' ] ) ;
474- explanation . outputs [ 0 ] . address . should . equal ( '5Ffp1wJCPu4hzVDTo7XaMLqZSvSadyUQmxWPDw74CBjECSoq' ) ;
475- explanation . outputs [ 0 ] . amount . should . equal ( '1000000000000' ) ;
462+ explanation . should . have . properties ( [ 'outputAmount' , 'changeAmount' , 'fee' , 'type' ] ) ;
463+ explanation . outputAmount . should . equal ( '1000000000000' ) ;
476464 explanation . changeAmount . should . equal ( '0' ) ;
477465 explanation . fee . should . have . properties ( [ 'fee' , 'type' ] ) ;
478466 explanation . fee . type . should . equal ( 'tip' ) ;
@@ -495,7 +483,7 @@ describe('Tao Move Stake Builder', function () {
495483 const explanation = tx . explainTransaction ( ) ;
496484
497485 explanation . fee . fee . should . equal ( '0' ) ;
498- explanation . outputAmount . should . equal ( '0 ' ) ;
486+ explanation . outputAmount . should . equal ( '500000000 ' ) ;
499487 } ) ;
500488 } ) ;
501489
0 commit comments