Skip to content

Commit

Permalink
ci: fix npm workflow missing env var
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Jan 19, 2024
1 parent 117dd40 commit 13976e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,13 @@ jobs:
- name: Install Node dependencies
run: yarn

- name: Drop-in Test Wallet
run: |
echo "test test test test test test test test test test test junk" > ./nayms_mnemonic.txt
echo "test test test test test test test test test test test junk" > ./nayms_mnemonic_mainnet.txt
- name: Build solidity contracts
run: make build
env:
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }}
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }}
ETH_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }}
BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }}

- name: Filter ABI
Expand Down
14 changes: 8 additions & 6 deletions gemforge.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ require("dotenv").config();
const fs = require("fs");
const ethers = require("ethers");

const MNEMONIC = fs.readFileSync("./nayms_mnemonic.txt").toString().trim();
const MNEMONIC_MAINNET = fs
.readFileSync("./nayms_mnemonic_mainnet.txt")
.toString()
.trim();
const MNEMONIC = fs.existsSync("./nayms_mnemonic.txt")
? fs.readFileSync("./nayms_mnemonic.txt").toString().trim()
: "test test test test test test test test test test test junk";

const MNEMONIC_MAINNET = fs.existsSync("./nayms_mnemonic_mainnet.txt")
? fs.readFileSync("./nayms_mnemonic_mainnet.txt").toString().trim()
: "test test test test test test test test test test test junk";

const walletOwnerIndex = 19;
const sysAdminAddress = ethers.Wallet.fromMnemonic(MNEMONIC).address;
const sysAdminAddress = ethers.Wallet.fromMnemonic(MNEMONIC)?.address;

module.exports = {
// Configuration file version
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nayms/contracts",
"version": "3.7.14",
"version": "3.7.16",
"main": "index.js",
"repository": "https://github.com/nayms/contracts-v3.git",
"author": "Kevin Park <[email protected]>",
Expand Down

0 comments on commit 13976e5

Please sign in to comment.