fix_lint (#11)

Co-authored-by: Arthur Abeilice <afa7789@gmail.com>
Reviewed-on: https://git.p2pix.co/doiim/p2pix-smart-contracts/pulls/11
Co-authored-by: arthur <abeilice@kosmos.org>
Co-committed-by: arthur <abeilice@kosmos.org>
This commit is contained in:
arthur
2026-05-29 20:09:12 +00:00
committed by hueso
parent 1addaae1c7
commit 9cc62efb8a
21 changed files with 1086 additions and 858 deletions

View File

@@ -15,8 +15,10 @@ dotenvConfig({ path: resolve(__dirname, "./.env") });
const DEFAULT_MNEMONIC =
"test test test test test test test test test test test junk";
const mnemonic: string = process.env.MNEMONIC ?? DEFAULT_MNEMONIC;
const alchemyApiKey: string | undefined = process.env.ALCHEMY_API_KEY;
const mnemonic: string =
process.env.MNEMONIC ?? DEFAULT_MNEMONIC;
const alchemyApiKey: string | undefined =
process.env.ALCHEMY_API_KEY;
const chainIds = {
// "{INSERT_NAME}": {INSERT_ID},
@@ -33,7 +35,12 @@ const chainIds = {
function getChainConfig(
chain: keyof typeof chainIds,
): NetworkUserConfig {
let jsonRpcUrl =
if (!alchemyApiKey) {
throw new Error(
`Please set ALCHEMY_API_KEY in a .env file before targeting ${chain}`,
);
}
const jsonRpcUrl =
"https://" + chain + ".g.alchemy.com/v2/" + alchemyApiKey;
return {
accounts: {
@@ -136,7 +143,7 @@ const config: HardhatUserConfig = {
},
docgen: {
pages: "files",
}
},
};
export default config;