feat: cash-in implementation for trx + usdt

This commit is contained in:
Rafael Taranto 2023-09-04 22:51:49 +01:00
parent b399ff0110
commit a1a27826b8
10 changed files with 5282 additions and 186 deletions

View file

@ -38,9 +38,10 @@ function fetchWallet (settings, cryptoCode) {
const wallet = ph.load(ph.WALLET, plugin)
const rawAccount = settings.accounts[plugin]
const account = _.set('seed', computeSeed(masterSeed), rawAccount)
if (_.isFunction(wallet.run)) wallet.run(account)
const accountWithMnemonic = _.set('mnemonic', mnemonic, account)
if (_.isFunction(wallet.run)) wallet.run(accountWithMnemonic)
const operatorId = computeOperatorId(masterSeed)
return { wallet, account, operatorId }
return { wallet, account: accountWithMnemonic, operatorId }
})
}