Skip to content

Commit

Permalink
test: fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Mar 7, 2024
1 parent 4ed7c4f commit 64cc6f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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]
);
Expand Down Expand Up @@ -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`
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/tests/api/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }));
Expand Down

0 comments on commit 64cc6f2

Please sign in to comment.