Skip to content

Commit

Permalink
small fixes for sepolia
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Sep 2, 2022
1 parent bd68f4b commit ed01ea3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ localConfig.EASY_EXODUS = process.env.CONTRACTS_TEST_EASY_EXODUS === 'true';

const contractDefs = {
goerli: testnetConfig,
sepolia: testnetConfig,
rinkeby: testnetConfig,
ropsten: testnetConfig,
mainnet: prodConfig,
Expand Down
9 changes: 5 additions & 4 deletions contracts/scripts/deploy-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, `etc/test_co
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: 'utf-8' }));

const provider = web3Provider();
const wallet = Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/1").connect(provider);
const wallet = Wallet.fromMnemonic(
process.env.MNEMONIC ? process.env.MNEMONIC : ethTestConfig.mnemonic,
"m/44'/60'/0'/0/1"
).connect(provider);

type Token = {
address: string | null;
Expand All @@ -37,9 +40,7 @@ async function deployToken(token: TokenDescription): Promise<Token> {

await erc20.mint(wallet.address, parseEther('3000000000'));
for (let i = 0; i < 10; ++i) {
const testWallet = Wallet.fromMnemonic(ethTestConfig.test_mnemonic as string, "m/44'/60'/0'/0/" + i).connect(
provider
);
const testWallet = Wallet.fromMnemonic(process.env.MNEMONIC as string, "m/44'/60'/0'/0/" + i).connect(provider);
await erc20.mint(testWallet.address, parseEther('3000000000'));
}
token.address = erc20.address;
Expand Down
1 change: 1 addition & 0 deletions core/tests/loadnext/src/account_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl AccountPool {
let eth_pk = H256::from_str(&config.master_wallet_pk)
.expect("Can't parse master wallet private key");
let address = pk_to_address(&eth_pk);
vlog::info!("Master address is {:?}", &address);
let zksync_pk = private_key_from_seed(eth_pk.as_bytes())
.expect("Can't generate the zkSync private key");
let wallet_credentials =
Expand Down

0 comments on commit ed01ea3

Please sign in to comment.