From 64cc6f25551cc75ea0af29005324717d03581479 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Thu, 7 Mar 2024 10:19:55 +0100 Subject: [PATCH] test: fix names --- .../src/playbook/deploy/use-multitransferETH.ts | 6 +++--- .../src/playbook/scenarios/transfers/transferERC20.ts | 2 +- packages/integration-tests/tests/api/tokens.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/integration-tests/src/playbook/deploy/use-multitransferETH.ts b/packages/integration-tests/src/playbook/deploy/use-multitransferETH.ts index 5995db64d5..b28765f570 100644 --- a/packages/integration-tests/src/playbook/deploy/use-multitransferETH.ts +++ b/packages/integration-tests/src/playbook/deploy/use-multitransferETH.ts @@ -20,7 +20,7 @@ export default async function callMultiTransferETH(hre: HardhatRuntimeEnvironmen //wallets, To const richWalletAddress = Wallets.richWalletAddress; const mainWalletAddress = Wallets.mainWalletAddress; - const secondWalletAddress = Wallets.secondWalletAddress; + const secondaryWalletAddress = Wallets.secondaryWalletAddress; // type of coin, contract const etherAddress = Token.ETHER_Address; //ETH const customTokenI = await helper.getStringFromFile(firstToken); @@ -60,7 +60,7 @@ export default async function callMultiTransferETH(hre: HardhatRuntimeEnvironmen //call the deployed contract. const transferFromContract = await attachedContract.multiTransfer( - [richWalletAddress, mainWalletAddress, secondWalletAddress], + [richWalletAddress, mainWalletAddress, secondaryWalletAddress], [etherAddress, customTokenI, customTokenII], [ethAmount, customTokenIAmount, customTokenIIAmount] ); @@ -90,7 +90,7 @@ export default async function callMultiTransferETH(hre: HardhatRuntimeEnvironmen ); console.log( `balance of wallet 3 is: "${ethers.utils.formatUnits( - await provider.getBalance(secondWalletAddress, "latest", customTokenII), + await provider.getBalance(secondaryWalletAddress, "latest", customTokenII), 18 )}" Custom token II` ); diff --git a/packages/integration-tests/src/playbook/scenarios/transfers/transferERC20.ts b/packages/integration-tests/src/playbook/scenarios/transfers/transferERC20.ts index 13a1ab0ed3..80f19d3905 100644 --- a/packages/integration-tests/src/playbook/scenarios/transfers/transferERC20.ts +++ b/packages/integration-tests/src/playbook/scenarios/transfers/transferERC20.ts @@ -11,7 +11,7 @@ export const transferERC20 = async function (sum: string, tokenAddress: string, const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); const syncWallet = new zksync.Wallet(localConfig.privateKey, syncProvider, ethProvider); - const syncWallet2 = new zksync.Wallet(Wallets.secondWalletPrivateKey, syncProvider, ethProvider); + const syncWallet2 = new zksync.Wallet(Wallets.secondaryWalletPrivateKey, syncProvider, ethProvider); const playbookRoot = "src/playbook/"; const bufferFile = playbookRoot + Buffer.txEthTransfer; diff --git a/packages/integration-tests/tests/api/tokens.test.ts b/packages/integration-tests/tests/api/tokens.test.ts index b708f03f21..6dbb897fc3 100644 --- a/packages/integration-tests/tests/api/tokens.test.ts +++ b/packages/integration-tests/tests/api/tokens.test.ts @@ -87,7 +87,7 @@ describe("Tokens", () => { expect(response.status).toBe(200); expect(response.body.items[0].amount).toBe("10000000000000000"); expect(response.body.items[0].from).toBe(Wallets.richWalletAddress); - expect(response.body.items[0].to).toBe(Wallets.secondWalletAddress); + expect(response.body.items[0].to).toBe(Wallets.secondaryWalletAddress); expect(response.body.items[0].token).toEqual(expect.objectContaining({ l2Address: l2Token })); expect(response.body.items[0]).toEqual(expect.objectContaining({ transactionHash: txHash })); expect(response.body.items[0]).toEqual(expect.objectContaining({ type: "transfer" }));