Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
attempt to fix BootloaderUtilities tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaVashchuk committed Dec 18, 2023
1 parent 7e5a45f commit 9a2392d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/BootloaderUtilities.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("BootloaderUtilities tests", function () {
gasLimit: 50000,
});
const txBytes = await wallet.signTransaction(legacyTx);
const parsedTx = zksync.utils.parseEip712(txBytes);
const parsedTx = ethers.Transaction.from(txBytes);
const txData = signedTxToTransactionData(parsedTx)!;

const expectedTxHash = parsedTx.hash;
Expand All @@ -77,7 +77,7 @@ describe("BootloaderUtilities tests", function () {
gasLimit: 50000,
});
const txBytes = await wallet.signTransaction(legacyTx);
const parsedTx = zksync.utils.parseEip712(txBytes);
const parsedTx = ethers.Transaction.from(txBytes);
const txData = signedTxToTransactionData(parsedTx)!;

const signature = ethers.toBeArray(ethers.hexlify(txData.signature));
Expand All @@ -100,7 +100,7 @@ describe("BootloaderUtilities tests", function () {
maxPriorityFeePerGas: 100,
});
const signedEip1559Tx = await wallet.signTransaction(eip1559Tx);
const parsedEIP1559tx = zksync.utils.parseEip712(signedEip1559Tx);
const parsedEIP1559tx = ethers.Transaction.from(signedEip1559Tx);

const EIP1559TxData = signedTxToTransactionData(parsedEIP1559tx)!;
delete eip1559Tx.from;
Expand All @@ -123,7 +123,7 @@ describe("BootloaderUtilities tests", function () {
maxPriorityFeePerGas: 100,
});
const signedEip1559Tx = await wallet.signTransaction(eip1559Tx);
const parsedEIP1559tx = zksync.utils.parseEip712(signedEip1559Tx);
const parsedEIP1559tx = ethers.Transaction.from(signedEip1559Tx);

const EIP1559TxData = signedTxToTransactionData(parsedEIP1559tx)!;
const signature = ethers.toBeArray(ethers.hexlify(EIP1559TxData.signature));
Expand All @@ -146,7 +146,7 @@ describe("BootloaderUtilities tests", function () {
gasPrice: 55000,
});
const signedEip2930Tx = await wallet.signTransaction(eip2930Tx);
const parsedEIP2930tx = zksync.utils.parseEip712(signedEip2930Tx);
const parsedEIP2930tx = ethers.Transaction.from(signedEip2930Tx);

const EIP2930TxData = signedTxToTransactionData(parsedEIP2930tx)!;
delete eip2930Tx.from;
Expand All @@ -169,7 +169,7 @@ describe("BootloaderUtilities tests", function () {
gasPrice: 55000,
});
const signedEip2930Tx = await wallet.signTransaction(eip2930Tx);
const parsedEIP2930tx = zksync.utils.parseEip712(signedEip2930Tx);
const parsedEIP2930tx = ethers.Transaction.from(signedEip2930Tx);

const EIP2930TxData = signedTxToTransactionData(parsedEIP2930tx)!;
const signature = ethers.toBeArray(ethers.hexlify(EIP2930TxData.signature));
Expand Down

0 comments on commit 9a2392d

Please sign in to comment.