Skip to content

Commit

Permalink
Educate for pk management
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSousaDinis committed May 6, 2024
1 parent d6eb2e1 commit 8e77df8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
tags:
- '*'
- "*"
pull_request:
types: [opened, synchronize]

Expand All @@ -16,12 +16,13 @@ jobs:

env:
FORCE_COLOR: true
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
11 changes: 4 additions & 7 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ dotenv.config();

import type { HardhatUserConfig } from "hardhat/config";

const deployer = {
mnemonic: process.env.MNEMONIC || "test test test test test test test test test test test junk",
};

// const deployer = [""];
// Never hardcode a pk here. Use the .env file
const deployer = [process.env.PRIVATE_KEY];

task("accounts", "Prints the list of accounts", async (args, hre) => {
const accounts = await hre.ethers.getSigners();
Expand Down Expand Up @@ -83,8 +80,8 @@ const config: HardhatUserConfig = {
alfajores: process.env.CELO_API_KEY || "",
polygon: process.env.POLYGON_API_KEY || "",
polygonMumbai: process.env.POLYGON_API_KEY || "",
base: "",
baseSepolia: "",
base: process.env.POLYGON_API_KEY || "",
baseSepolia: process.env.POLYGON_API_KEY || "",
},
// Custom chains that are not supported by default
customChains: [
Expand Down

0 comments on commit 8e77df8

Please sign in to comment.