@@ -3,16 +3,22 @@ import "@nomicfoundation/hardhat-toolbox";
33import "@nomicfoundation/hardhat-foundry" ;
44import "@nomicfoundation/hardhat-ignition-ethers" ;
55import "hardhat-jest" ; // Typescript
6+ import { ethers } from 'ethers'
67
78// Add the following variables to the configuration variables.
89const ALCHEMY_API_KEY = vars . get ( "ALCHEMY_API_KEY" ) ;
910const EVM_PRIVATE_KEY_1 = vars . get ( "EVM_PRIVATE_KEY_1" ) ;
10- const EVM_PRIVATE_KEY_2 = vars . get ( "EVM_PRIVATE_KEY_2" ) ;
11+ // const EVM_PRIVATE_KEY_2 = vars.get("EVM_PRIVATE_KEY_2");
1112const ETHERSCAN_API_KEY = vars . get ( "ETHERSCAN_API_KEY" ) ;
1213const BASESCAN_API_KEY = vars . get ( "BASESCAN_API_KEY" ) ;
1314const COREDAO_BLOCK_EXPLORER_API_KEY = vars . get ( "COREDAO_BLOCK_EXPLORER_API_KEY" ) ;
1415const SCROLL_API_KEY = vars . get ( "SCROLL_API_KEY" ) ;
1516
17+ const phrase = process . env . TOKENSOFT_E2E_MNEMONIC || 'test test test test test test test test test test test junk'
18+ const mnemonic = ethers . HDNodeWallet . fromPhrase ( phrase ) . mnemonic !
19+
20+ const wallet = ethers . HDNodeWallet . fromMnemonic ( mnemonic , "m/44'/60'/0'/0/0" )
21+
1622const config : HardhatUserConfig = {
1723 solidity : {
1824 version : "0.8.21" ,
@@ -30,7 +36,7 @@ const config: HardhatUserConfig = {
3036 networks : {
3137 anvil : {
3238 url : 'http://localhost:8545' ,
33- accounts : [ '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80' ] ,
39+ accounts : [ wallet . privateKey ]
3440 } ,
3541 sepolia : {
3642 url : `https://eth-sepolia.g.alchemy.com/v2/${ ALCHEMY_API_KEY } ` ,
0 commit comments