import { Wallet } from 'zksync-ethers' import { Deployer } from '@matterlabs/hardhat-zksync-deploy' import { HardhatRuntimeEnvironment } from 'hardhat/types' const wallet = Wallet.fromPhrase(process.env.MNEMONIC!) export function deployerWith(hre: HardhatRuntimeEnvironment) { return new Deployer(hre, new Wallet(wallet.privateKey)) }