feat: change to generic ERC-20 ABI json file

fix: coinUtils rename import
This commit is contained in:
Sérgio Salgado 2021-06-10 01:43:22 +01:00 committed by Josh Harvey
parent dff407e30e
commit 8e099e3283
36 changed files with 364 additions and 249 deletions

View file

@ -1,6 +1,6 @@
const BN = require('../../../bn')
const E = require('../../../error')
const { utils } = require('lamassu-coins')
const { utils: coinUtils } = require('lamassu-coins')
const NAME = 'FakeWallet'
@ -12,7 +12,7 @@ const CONFIRM_TIME = AUTHORIZE_TIME + 120 * SECONDS
let t0
function _balance (cryptoCode) {
const cryptoRec = utils.getCryptoCurrency(cryptoCode)
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
const unitScale = cryptoRec.unitScale
return BN(10).shift(unitScale).round()
}