fix: XMR sendCoins interface

This commit is contained in:
Sérgio Salgado 2022-02-04 19:41:09 +00:00
parent 04f4891291
commit 2e9e207486

View file

@ -99,11 +99,12 @@ function balance (account, cryptoCode) {
return accountBalance(cryptoCode)
}
function sendCoins (account, address, cryptoAtoms, cryptoCode) {
function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
const { toAddress, cryptoAtoms, cryptoCode } = tx
return checkCryptoCode(cryptoCode)
.then(() => refreshWallet())
.then(() => fetch('transfer_split', {
destinations: [{ amount: cryptoAtoms, address }],
destinations: [{ amount: cryptoAtoms, address: toAddress }],
account_index: 0,
subaddr_indices: [],
priority: 0,