Skip to content

Commit

Permalink
fix(test): fixing the CA integration tests on the initial tx schema c…
Browse files Browse the repository at this point in the history
…hange (#875)
  • Loading branch information
geekbrother authored Dec 17, 2024
1 parent de0038d commit 0bc557f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration/chain_orchestrator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Chain abstraction orchestrator', () => {
from: from_address_with_funds,
to: usdc_contract_optimism,
value: "0x00", // Zero native tokens
data: data_encoded,
input: data_encoded,
chainId: chain_id_optimism,
}
}
Expand All @@ -70,7 +70,7 @@ describe('Chain abstraction orchestrator', () => {
from: empty_wallet_address,
to: usdc_contract_optimism,
value: "0x00", // Zero native tokens
data: data_encoded,
input: data_encoded,
chainId: chain_id_optimism,
}
}
Expand All @@ -96,7 +96,7 @@ describe('Chain abstraction orchestrator', () => {
from: from_address_with_funds,
to: usdc_contract_optimism,
value: "0x00", // Zero native tokens
data: data_encoded,
input: data_encoded,
chainId: chain_id_optimism,
}
}
Expand All @@ -122,7 +122,7 @@ describe('Chain abstraction orchestrator', () => {
from: from_address_with_funds,
to: usdc_contract_optimism,
value: "0x00", // Zero native tokens
data: data_encoded,
input: data_encoded,
chainId: chain_id_optimism,
}
}
Expand All @@ -143,7 +143,7 @@ describe('Chain abstraction orchestrator', () => {
expect(approvalTransaction.chainId).toBe(chain_id_base)
expect(approvalTransaction.nonce).not.toBe("0x00")
expect(() => BigInt(approvalTransaction.gasLimit)).not.toThrow();
const decodedData = erc20Interface.decodeFunctionData('approve', approvalTransaction.data);
const decodedData = erc20Interface.decodeFunctionData('approve', approvalTransaction.input);
if (decodedData.amount < BigInt(amount_to_topup_with_fees)) {
throw new Error(`Expected amount is lower then the minimal required`);
}
Expand Down

0 comments on commit 0bc557f

Please sign in to comment.