Skip to content

Commit

Permalink
Update config path
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorjdawson committed Jun 8, 2021
1 parent fdced18 commit 6dc2c36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/croncat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config()
const chalk = require('chalk')
const yargs = require('yargs')
import getConfig from '../src/config'
import getConfig from '../src/configuration'
const { agentFunction } = require('../src/actions')

const registerAgent = {
Expand Down
2 changes: 1 addition & 1 deletion src/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export default function getConfig(env, options = {}) {
walletUrl: 'http://localhost:4000/wallet',
}
default:
throw Error(`Unconfigured environment '${env}'. Can be configured in src/config.js.`)
throw Error(`Unconfigured environment '${env}'. Can be configured in src/configuration.js.`)
}
}
2 changes: 1 addition & 1 deletion src/near.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect, KeyPair, keyStores, Contract, WalletConnection, WalletAccount
// import fs from 'fs'
import path from 'path'
import { homedir } from 'os'
import getConfig from './config'
import getConfig from './configuration'

const CREDENTIALS_DIR = '.near-credentials'
const credentialsBasePath = path.join(homedir(), CREDENTIALS_DIR)
Expand Down

0 comments on commit 6dc2c36

Please sign in to comment.