@@ -31,7 +31,7 @@ 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 ) ;
3535 should . equal ( tx . toBroadcastFormat ( ) , testData . TX_BROADCAST ) ;
3636 should . equal ( txJson . from , testData . KEYPAIR_PRV . getAddress ( ) ) ;
3737 } ) ;
@@ -47,7 +47,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
4747 txJson . gasLimit . should . equal ( '12100000' ) ;
4848 txJson . gasPrice . should . equal ( '1000000000' ) ;
4949 should . equal ( txJson . nonce , 0 ) ;
50- should . equal ( txJson . chainId , 44787 ) ;
50+ should . equal ( txJson . chainId , 11142220 ) ;
5151 should . equal ( txJson . from , testData . KEYPAIR_PRV . getAddress ( ) ) ;
5252 } ) ;
5353
@@ -60,9 +60,9 @@ describe('Celo Transaction builder for wallet initialization', () => {
6060 txJson . gasLimit . should . equal ( '12100000' ) ;
6161 txJson . gasPrice . should . equal ( '1000000000' ) ;
6262 should . equal ( txJson . nonce , 0 ) ;
63- should . equal ( txJson . chainId , 44787 ) ;
63+ should . equal ( txJson . chainId , 11142220 ) ;
6464 // Celo has disable final v and it has chain id as v value.
65- should . equal ( txJson . v , 0x015e09 ) ;
65+ should . equal ( txJson . v , 0x015408bb ) ;
6666 } ) ;
6767
6868 it ( 'an init transaction from an unsigned serialized one' , async ( ) => {
@@ -75,7 +75,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
7575 newTxBuilder . from ( serialized ) ;
7676 newTxBuilder . sign ( { key : testData . KEYPAIR_PRV . getKeys ( ) . prv } ) ;
7777 const signedTx = await newTxBuilder . build ( ) ;
78- should . equal ( signedTx . toJson ( ) . chainId , 44787 ) ;
78+ should . equal ( signedTx . toJson ( ) . chainId , 11142220 ) ;
7979 should . equal ( signedTx . toBroadcastFormat ( ) , testData . TX_BROADCAST ) ;
8080 } ) ;
8181
@@ -90,7 +90,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
9090 const newTxBuilder = getBuilder ( 'tcelo' ) as TransactionBuilder ;
9191 newTxBuilder . from ( testData . TEST_WALLET_CREATION ) ;
9292 const newTx = await newTxBuilder . build ( ) ;
93- should . equal ( newTx . toJson ( ) . id , '0x3b6cdb03cc92aae90ae067ec71e27f17ff879e9c6499ab682212bab367628a9c ' ) ;
93+ should . equal ( newTx . toJson ( ) . id , '0xbfb1de15a69c20c1467fa9708a8ac71e15e3a162618f865067b541b2db03f894 ' ) ;
9494 } ) ;
9595 } ) ;
9696
0 commit comments