Client-based Hardhat config
Opened this issue · 1 comments
fadeev commented
Instead of the current approach:
Lines 1 to 14 in 9a47a78
I propose:
import "@zetachain/toolkit/tasks";
import { ethers } from "ethers";
import { ZetaChainClient } from "@zetachain/toolkit/client";
const client = new ZetaChainClient({
network: "testnet",
wallet: new ethers.Wallet(process.env.PRIVATE_KEY as string),
});
export const config = {
...client.getHardhatConfig(),
};
Advantages:
- uses the same client-based approach
- can easily switch between testnet and mainnet
- can still configure properties of config manually
ronaldoguedess commented
🚀