diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index bf424751..ac1e7f37 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -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 diff --git a/gemforge.config.cjs b/gemforge.config.cjs index 4b8a982f..0b074f5f 100644 --- a/gemforge.config.cjs +++ b/gemforge.config.cjs @@ -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 diff --git a/package.json b/package.json index 7346f355..d1974539 100644 --- a/package.json +++ b/package.json @@ -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 ",