convert common.js modules to new standard esm module syntax (#815)

This commit is contained in:
Fred K. Schott
2017-12-04 11:21:56 -08:00
committed by Elliot Lee
parent 7ece43e2e2
commit 7e5b9948a8
79 changed files with 663 additions and 616 deletions

View File

@@ -1,6 +1,6 @@
'use strict' // eslint-disable-line strict
const BigNumber = require('bignumber.js')
const {dropsToXrp} = require('./utils')
import BigNumber from 'bignumber.js'
import {dropsToXrp} from '../../common'
function parseFeeUpdate(tx: Object) {
const baseFeeDrops = (new BigNumber(tx.BaseFee, 16)).toString()
@@ -12,4 +12,4 @@ function parseFeeUpdate(tx: Object) {
}
}
module.exports = parseFeeUpdate
export default parseFeeUpdate