refactor: use array destructuring instead of indexing
This commit is contained in:
parent
b74bd2ce14
commit
ac7cb243af
1 changed files with 1 additions and 2 deletions
|
|
@ -205,8 +205,7 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function mapCoinSettings (coinParams) {
|
||||
const cryptoCode = coinParams[0]
|
||||
const cryptoNetwork = coinParams[1]
|
||||
const [ cryptoCode, cryptoNetwork ] = coinParams
|
||||
const commissions = configManager.getCommissions(cryptoCode, deviceId, settings.config)
|
||||
const minimumTx = new BN(commissions.minimumTx)
|
||||
const cashInFee = new BN(commissions.fixedFee)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue