fixed #28 and other small node.js issues

This commit is contained in:
Marek Kotewicz
2015-01-16 15:49:36 +01:00
parent 2c36d5ff45
commit 0172939490
10 changed files with 39 additions and 60 deletions

View File

@@ -23,10 +23,10 @@
// TODO: is these line is supposed to be here?
if (process.env.NODE_ENV !== 'build') {
var web3 = require('./web3'); // jshint ignore:line
var BigNumber = require('bignumber.js'); // jshint ignore:line
}
var BigNumber = require('bignumber.js');
var web3 = require('./web3'); // jshint ignore:line
// TODO: make these be actually accurate instead of falling back onto JS's doubles.
var hexToDec = function (hex) {