mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
convert common.js modules to new standard esm module syntax (#815)
This commit is contained in:
committed by
Elliot Lee
parent
7ece43e2e2
commit
7e5b9948a8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user