Skip to content

Commit

Permalink
Merge pull request #32 from CronCats/shardnet
Browse files Browse the repository at this point in the history
add debug
  • Loading branch information
TrevorJTClarke authored Jul 19, 2022
2 parents 96698df + 1157765 commit 0910c62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "croncat",
"version": "1.8.0",
"version": "1.8.1",
"description": "cron.cat CLI and Agent Runner",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getAgentBalance() {
return balance
} catch (e) {
console.log(`${chalk.red('NEAR RPC Failed')}`)
await notifySlack(`*Attention!* NEAR ${near_env} RPC Failed to retrieve balance!`)
await utils.notifySlack(`*Attention!* NEAR ${near_env} RPC Failed to retrieve balance!`)
process.exit(1)
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const Near = new NearProvider({
networkId: config.NODE_ENV === 'production' ? 'mainnet' : config.NODE_ENV || 'testnet',
accountId: config.AGENT_ACCOUNT_ID,
})
util.dbug('Near OBJ', Near);

export const queryRpc = async (account_id, method_name, args, options = {}, args_base64) => {
// load contract based on abis & type
Expand All @@ -92,6 +93,7 @@ export const queryRpc = async (account_id, method_name, args, options = {}, args
let cronManager = null

export async function connect(options) {
util.dbug('connect options', options);
try {
await Near.getNearConnection(options)
} catch (e) {
Expand Down

0 comments on commit 0910c62

Please sign in to comment.