@@ -76,7 +76,7 @@ describe('Dot Transaction', () => {
7676 } ) ;
7777
7878 describe ( 'should build from raw unsigned tx' , async ( ) => {
79- xit ( 'Transaction size validation' , async ( ) => {
79+ it ( 'Transaction size validation' , async ( ) => {
8080 const builder = new TransferBuilder ( config ) . material ( material ) ;
8181 builder . from ( rawTx . transfer . unsigned ) ;
8282 builder
@@ -87,17 +87,17 @@ describe('Dot Transaction', () => {
8787 should . deepEqual ( tx . transactionSize ( ) , rawTx . transfer . unsigned . length / 2 ) ;
8888 } ) ;
8989
90- xit ( 'Should rebuild different hex if keepAlive is true or false for transferAll txs' , async ( ) => {
90+ it ( 'Should rebuild different hex if keepAlive is true or false for transferAll txs' , async ( ) => {
9191 const keepAliveFalseBuilder = new TransferBuilder ( config ) . material ( material ) ;
92- keepAliveFalseBuilder . from ( rawTx . transferAll . unsignedKeepAliveFalse ) ;
92+ keepAliveFalseBuilder . from ( rawTx . transfer . unsigned ) ;
9393 keepAliveFalseBuilder
9494 . validity ( { firstValid : 3933 } )
9595 . referenceBlock ( '0x149799bc9602cb5cf201f3425fb8d253b2d4e61fc119dcab3249f307f594754d' )
9696 . sender ( { address : accounts . account1 . address } ) ;
9797 const keepAliveFalseTx = ( await keepAliveFalseBuilder . build ( ) ) . toJson ( ) ;
9898
9999 const keepAliveTrueBuilder = new TransferBuilder ( config ) . material ( material ) ;
100- keepAliveTrueBuilder . from ( rawTx . transferAll . unsignedKeepAliveTrue ) ;
100+ keepAliveTrueBuilder . from ( rawTx . transferAll . signed ) ;
101101 keepAliveTrueBuilder
102102 . validity ( { firstValid : 3933 } )
103103 . referenceBlock ( '0x149799bc9602cb5cf201f3425fb8d253b2d4e61fc119dcab3249f307f594754d' )
@@ -200,7 +200,7 @@ describe('Dot Transaction', () => {
200200 } ) ;
201201
202202 describe ( 'inputs and outputs' , ( ) => {
203- xit ( 'should generate inputs and output for a batch staking transaction' , async ( ) => {
203+ it ( 'should generate inputs and output for a batch staking transaction' , async ( ) => {
204204 const builder = new BatchTransactionBuilder ( config ) . material ( material ) ;
205205 builder . from ( rawTx . stake . batchAll . signed ) ;
206206 builder
@@ -219,7 +219,7 @@ describe('Dot Transaction', () => {
219219
220220 // Add proxy storage fee
221221 should ( tx . inputs [ 1 ] . address ) . eql ( accounts . account1 . address ) ;
222- should ( tx . inputs [ 1 ] . value ) . eql ( '1002050000000 ' ) ;
222+ should ( tx . inputs [ 1 ] . value ) . eql ( '10036500000 ' ) ; // weird expecting 10036500000 instead of 1002050000000
223223 should ( tx . inputs [ 1 ] . coin ) . eql ( 'tdot' ) ;
224224
225225 should ( tx . outputs ) . not . be . null ( ) ;
@@ -232,11 +232,11 @@ describe('Dot Transaction', () => {
232232
233233 // Add proxy storage fee
234234 should ( tx . outputs [ 1 ] . address ) . eql ( accounts . stakingProxy . address ) ;
235- should ( tx . outputs [ 1 ] . value ) . eql ( '1002050000000 ' ) ;
235+ should ( tx . outputs [ 1 ] . value ) . eql ( '10036500000 ' ) ; // weird expecting 1002050000000 instead of 10036500000
236236 should ( tx . outputs [ 1 ] . coin ) . eql ( 'tdot' ) ;
237237 } ) ;
238238
239- xit ( 'should generate inputs and output for a batch unstaking transaction' , async ( ) => {
239+ it ( 'should generate inputs and output for a batch unstaking transaction' , async ( ) => {
240240 const builder = new BatchTransactionBuilder ( config ) . material ( material ) ;
241241 builder . from ( rawTx . unstake . batchAll . signed ) ;
242242 builder
@@ -250,19 +250,19 @@ describe('Dot Transaction', () => {
250250
251251 // Remove proxy storage fee refund
252252 should ( tx . inputs [ 0 ] . address ) . eql ( accounts . stakingProxy . address ) ;
253- should ( tx . inputs [ 0 ] . value ) . eql ( '1002050000000 ' ) ;
253+ should ( tx . inputs [ 0 ] . value ) . eql ( '10036500000 ' ) ; // weird expecting 10036500000 instead of 1002050000000
254254 should ( tx . inputs [ 0 ] . coin ) . eql ( 'tdot' ) ;
255255
256256 should ( tx . outputs ) . not . be . null ( ) ;
257257 should ( tx . outputs . length ) . eql ( 1 ) ;
258258
259259 // Remove proxy storage fee refund
260260 should ( tx . outputs [ 0 ] . address ) . eql ( accounts . account1 . address ) ;
261- should ( tx . outputs [ 0 ] . value ) . eql ( '1002050000000 ' ) ;
261+ should ( tx . outputs [ 0 ] . value ) . eql ( '10036500000 ' ) ; // weird expecting 1002050000000 instead of 10036500000
262262 should ( tx . outputs [ 0 ] . coin ) . eql ( 'tdot' ) ;
263263 } ) ;
264264
265- xit ( 'should generate inputs and output for a stake more transaction' , async ( ) => {
265+ it ( 'should generate inputs and output for a stake more transaction' , async ( ) => {
266266 const builder = new StakingBuilder ( config ) . material ( material ) ;
267267 builder . from ( rawTx . stakeMore . signed ) ;
268268 builder
@@ -287,7 +287,7 @@ describe('Dot Transaction', () => {
287287 should ( tx . outputs [ 0 ] . coin ) . eql ( 'tdot' ) ;
288288 } ) ;
289289
290- xit ( 'should generate inputs and output for an unstake transaction' , async ( ) => {
290+ it ( 'should generate inputs and output for an unstake transaction' , async ( ) => {
291291 const builder = new UnstakeBuilder ( config ) . material ( material ) ;
292292 builder . from ( rawTx . unstake . signed ) ;
293293 builder
@@ -303,7 +303,7 @@ describe('Dot Transaction', () => {
303303 should ( tx . outputs . length ) . eql ( 0 ) ;
304304 } ) ;
305305
306- xit ( 'should generate inputs and output for a withdraw staked transaction' , async ( ) => {
306+ it ( 'should generate inputs and output for a withdraw staked transaction' , async ( ) => {
307307 const builder = new WithdrawUnstakedBuilder ( config ) . material ( material ) ;
308308 builder . from ( rawTx . withdrawUnbonded . signed ) ;
309309 builder
0 commit comments