Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Commit

Permalink
npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaether committed Jan 31, 2018
1 parent 046a00d commit 1b4cb5c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eac.js",
"version": "1.0.5",
"version": "1.1.0",
"description": "Commnandline tool to interact with the Ethereum Alarm Clock contracts.",
"main": "./src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/eac.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const log = {

// Parse the command line options using commander.
program
.version("1.0.5")
.version("1.1.0")
// Client options
.option("-c, --client", "starts the executing client")
.option(
Expand Down
2 changes: 1 addition & 1 deletion src/client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const main = async (
) => {
const eac = require("../index")(web3)
// Assigns chain to the name of the network ID
const chain = eac.Util.getChainName()
const chain = await eac.Util.getChainName()

// Loads the contracts
let requestFactory, requestTracker
Expand Down
9 changes: 6 additions & 3 deletions src/client/scanning.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,13 @@ const scanCache = async conf => {

const allTxRequests = conf.cache
.stored()
.map(address => await eac.transactionRequest(address))
.map(address => eac.transactionRequest(address))

allTxRequests.forEach(txRequest => {
txRequest.refreshData().then(_ => routeTxRequest(conf, txRequest))
Promise.all(allTxRequests)
.then(txRequests => {
txRequests.forEach(txRequest => {
txRequest.refreshData().then(_ => routeTxRequest(conf, txRequest))
})
})
}

Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports = web3 => {
checkValidAddress,
estimateGas: opts => estimateGas(web3, opts),
getABI,
getBalance: address => getBalance(address),
getBalance: address => getBalance(web3, address),
getBlockNumber: () => getBlockNumber(web3),
getChainName: () => getChainName(web3),
getGasPrice: () => getGasPrice(web3),
Expand Down

0 comments on commit 1b4cb5c

Please sign in to comment.