Skip to content

Local testing #37

Closed Answered by dutterbutter
seddik11 asked this question in General
Jun 26, 2023 · 7 comments · 6 replies
Discussion options

You must be logged in to vote

No it should still re-initialize those accounts. This script checks the balances of those rich wallets connecting to a local node running on http://localhost:3050 if you would like to check those balances.

import { Provider, Wallet } from "zksync-web3";
import { HardhatRuntimeEnvironment } from "hardhat/types";
import * as ethers from "ethers";

export default async function (hre: HardhatRuntimeEnvironment) {
  console.log(`Running script...`);
  const provider = new Provider("http://localhost:3050");

  const RICH_WALLET_1 = new Wallet(
    "0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110",
  );
  const RICH_WALLET_2 = new Wallet(
    "0xac1e735be8536c6534bb4f17f06f6af…

Replies: 7 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dutterbutter
Comment options

Comment options

You must be logged in to vote
5 replies
@seddik11
Comment options

@dutterbutter
Comment options

@seddik11
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
5 participants