@@ -127,8 +127,8 @@ describe('Chain abstraction orchestrator', () => {
127
127
128
128
} )
129
129
130
- it ( 'bridging routes (routes available, USDC Optimism ⇄ USDT Arbitrum )' , async ( ) => {
131
- // Sending USDC to Optimism, but having the maximum balance of USDT on Arbitrum chain
130
+ it ( 'bridging routes (routes available, USDC Optimism ⇄ USDC Base )' , async ( ) => {
131
+ // Sending USDC to Optimism, but having the balance of USDC on Base chain
132
132
// which expected to be used for bridging
133
133
134
134
// How much needs to be topped up
@@ -163,17 +163,17 @@ describe('Chain abstraction orchestrator', () => {
163
163
164
164
// First transaction expected to be the approval transaction
165
165
const approvalTransaction = data . transactions [ 0 ]
166
- expect ( approvalTransaction . chainId ) . toBe ( chain_id_arbitrum )
166
+ expect ( approvalTransaction . chainId ) . toBe ( chain_id_base )
167
167
expect ( approvalTransaction . nonce ) . not . toBe ( "0x00" )
168
168
expect ( ( ) => BigInt ( approvalTransaction . gasLimit ) ) . not . toThrow ( ) ;
169
169
const decodedData = erc20Interface . decodeFunctionData ( 'approve' , approvalTransaction . input ) ;
170
170
if ( decodedData . amount < BigInt ( amount_to_topup_with_fees ) ) {
171
171
throw new Error ( `Expected amount is lower then the minimal required` ) ;
172
172
}
173
173
174
- // Second transaction expected to be the bridging to the Arbitrum
174
+ // Second transaction expected to be the bridging to the Base
175
175
const bridgingTransaction = data . transactions [ 1 ]
176
- expect ( bridgingTransaction . chainId ) . toBe ( chain_id_arbitrum )
176
+ expect ( bridgingTransaction . chainId ) . toBe ( chain_id_base )
177
177
expect ( bridgingTransaction . nonce ) . not . toBe ( "0x00" )
178
178
expect ( ( ) => BigInt ( approvalTransaction . gasLimit ) ) . not . toThrow ( ) ;
179
179
@@ -185,9 +185,9 @@ describe('Chain abstraction orchestrator', () => {
185
185
186
186
// Check the metadata fundingFrom
187
187
const fundingFrom = data . metadata . fundingFrom [ 0 ]
188
- expect ( fundingFrom . chainId ) . toBe ( chain_id_arbitrum )
189
- expect ( fundingFrom . symbol ) . toBe ( usdt_token_symbol )
190
- expect ( fundingFrom . tokenContract ) . toBe ( usdt_contracts [ chain_id_arbitrum ] . toLowerCase ( ) )
188
+ expect ( fundingFrom . chainId ) . toBe ( chain_id_base )
189
+ expect ( fundingFrom . symbol ) . toBe ( usdc_token_symbol )
190
+ expect ( fundingFrom . tokenContract ) . toBe ( usdc_contracts [ chain_id_base ] . toLowerCase ( ) )
191
191
if ( BigInt ( fundingFrom . amount ) <= BigInt ( amount_to_topup_with_fees ) ) {
192
192
throw new Error ( `Expected amount is lower then the minimal required` ) ;
193
193
}
0 commit comments