@@ -31,7 +31,8 @@ describe('Celo Transaction builder for wallet initialization', () => {
3131 txJson . gasLimit . should . equal ( '12100000' ) ;
3232 txJson . gasPrice . should . equal ( '1000000000' ) ;
3333 should . equal ( txJson . nonce , 2 ) ;
34- should . equal ( txJson . chainId , 44787 ) ;
34+ should . equal ( txJson . chainId , 11142220 ) ;
35+ console . log ( 'tx.toBroadcastFormat(): ' , tx . toBroadcastFormat ( ) ) ;
3536 should . equal ( tx . toBroadcastFormat ( ) , testData . TX_BROADCAST ) ;
3637 should . equal ( txJson . from , testData . KEYPAIR_PRV . getAddress ( ) ) ;
3738 } ) ;
@@ -47,7 +48,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
4748 txJson . gasLimit . should . equal ( '12100000' ) ;
4849 txJson . gasPrice . should . equal ( '1000000000' ) ;
4950 should . equal ( txJson . nonce , 0 ) ;
50- should . equal ( txJson . chainId , 44787 ) ;
51+ should . equal ( txJson . chainId , 11142220 ) ;
5152 should . equal ( txJson . from , testData . KEYPAIR_PRV . getAddress ( ) ) ;
5253 } ) ;
5354
@@ -60,9 +61,9 @@ describe('Celo Transaction builder for wallet initialization', () => {
6061 txJson . gasLimit . should . equal ( '12100000' ) ;
6162 txJson . gasPrice . should . equal ( '1000000000' ) ;
6263 should . equal ( txJson . nonce , 0 ) ;
63- should . equal ( txJson . chainId , 44787 ) ;
64+ should . equal ( txJson . chainId , 11142220 ) ;
6465 // Celo has disable final v and it has chain id as v value.
65- should . equal ( txJson . v , 0x015e09 ) ;
66+ should . equal ( txJson . v , 0x015408bb ) ;
6667 } ) ;
6768
6869 it ( 'an init transaction from an unsigned serialized one' , async ( ) => {
@@ -75,7 +76,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
7576 newTxBuilder . from ( serialized ) ;
7677 newTxBuilder . sign ( { key : testData . KEYPAIR_PRV . getKeys ( ) . prv } ) ;
7778 const signedTx = await newTxBuilder . build ( ) ;
78- should . equal ( signedTx . toJson ( ) . chainId , 44787 ) ;
79+ should . equal ( signedTx . toJson ( ) . chainId , 11142220 ) ;
7980 should . equal ( signedTx . toBroadcastFormat ( ) , testData . TX_BROADCAST ) ;
8081 } ) ;
8182
@@ -90,7 +91,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
9091 const newTxBuilder = getBuilder ( 'tcelo' ) as TransactionBuilder ;
9192 newTxBuilder . from ( testData . TEST_WALLET_CREATION ) ;
9293 const newTx = await newTxBuilder . build ( ) ;
93- should . equal ( newTx . toJson ( ) . id , '0x3b6cdb03cc92aae90ae067ec71e27f17ff879e9c6499ab682212bab367628a9c ' ) ;
94+ should . equal ( newTx . toJson ( ) . id , '0xbfb1de15a69c20c1467fa9708a8ac71e15e3a162618f865067b541b2db03f894 ' ) ;
9495 } ) ;
9596 } ) ;
9697
0 commit comments