Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Dec 3, 2024
1 parent 7695966 commit b7fa172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/tests/ts-integration/tests/ether.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('ETH token checks', () => {
const l2GasLimit = await zksync.utils.estimateDefaultBridgeDepositL2Gas(
alice.providerL1!,
alice.provider,
zksync.utils.ETH_ADDRESS,
zksync.utils.ETH_ADDRESS_IN_CONTRACTS,
amount,
alice.address,
alice.address,
Expand All @@ -73,7 +73,7 @@ describe('ETH token checks', () => {
});

const depositOp = alice.deposit({
token: zksync.utils.ETH_ADDRESS,
token: zksync.utils.ETH_ADDRESS_IN_CONTRACTS,
amount,
gasPerPubdataByte,
l2GasLimit,
Expand Down
4 changes: 1 addition & 3 deletions core/tests/ts-integration/tests/l1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ describe('Tests for L1 behavior', () => {
expect(msgProof).toBeTruthy();

// Ensure that received proof matches the provided root hash.
const { id, proof, root } = msgProof!;
const accumulatedRoot = calculateAccumulatedRoot(alice.address, message, receipt.l1BatchTxIndex!, id, proof);
expect(accumulatedRoot).toBe(root);
const { id, proof } = msgProof!;

// Ensure that provided proof is accepted by the main ZKsync contract.
const chainContract = await alice.getMainContract();
Expand Down

0 comments on commit b7fa172

Please sign in to comment.