@@ -43,6 +43,7 @@ describe('Polyx Register DID with CDD builder Builder', () => {
4343 builder . addSignature ( { pub : sender . publicKey } , Buffer . from ( mockTssSignature , 'hex' ) ) ;
4444 const tx = await builder . build ( ) ;
4545 const txJson = tx . toJson ( ) ;
46+ should . deepEqual ( txJson . amount , '0' ) ;
4647 should . deepEqual ( txJson . to , receiver . address ) ;
4748 should . deepEqual ( txJson . sender , sender . address ) ;
4849 should . deepEqual ( txJson . blockNumber , 3933 ) ;
@@ -75,6 +76,7 @@ describe('Polyx Register DID with CDD builder Builder', () => {
7576 builder . addSignature ( { pub : sender . publicKey } , Buffer . from ( mockTssSignature , 'hex' ) ) ;
7677 const tx = await builder . build ( ) ;
7778 const txJson = tx . toJson ( ) ;
79+ should . deepEqual ( txJson . amount , '0' ) ;
7880 should . deepEqual ( txJson . to , receiver . address ) ;
7981 should . deepEqual ( txJson . sender , sender . address ) ;
8082 should . deepEqual ( txJson . blockNumber , 3933 ) ;
@@ -106,6 +108,7 @@ describe('Polyx Register DID with CDD builder Builder', () => {
106108 . fee ( { amount : 0 , type : 'tip' } ) ;
107109 const tx = await builder . build ( ) ;
108110 const txJson = tx . toJson ( ) ;
111+ should . deepEqual ( txJson . amount , '0' ) ;
109112 should . deepEqual ( txJson . to , receiver . address ) ;
110113 should . deepEqual ( txJson . sender , sender . address ) ;
111114 should . deepEqual ( txJson . blockNumber , 3933 ) ;
@@ -126,6 +129,7 @@ describe('Polyx Register DID with CDD builder Builder', () => {
126129 . referenceBlock ( '0x149799bc9602cb5cf201f3425fb8d253b2d4e61fc119dcab3249f307f594754d' ) ;
127130 const tx = await builder . build ( ) ;
128131 const txJson = tx . toJson ( ) ;
132+ should . deepEqual ( txJson . amount , '0' ) ;
129133 should . deepEqual ( txJson . to , '5EFWg5wKTgkFE9XCxigBYPYKQg173djwSmRbkALCdL1jFVUU' ) ;
130134 should . deepEqual ( txJson . sender , '5E7XWJRysj27EzibT4duRxrBQT9Qfa7Z5nAAvJmvd32nhkjH' ) ;
131135 should . deepEqual ( txJson . blockNumber , 3933 ) ;
@@ -149,6 +153,7 @@ describe('Polyx Register DID with CDD builder Builder', () => {
149153
150154 const tx = await builder . build ( ) ;
151155 const txJson = tx . toJson ( ) ;
156+ should . deepEqual ( txJson . amount , '0' ) ;
152157 should . deepEqual ( txJson . to , '5EFWg5wKTgkFE9XCxigBYPYKQg173djwSmRbkALCdL1jFVUU' ) ;
153158 should . deepEqual ( txJson . sender , sender . address ) ;
154159 should . deepEqual ( txJson . blockNumber , 3933 ) ;
0 commit comments