fix: XMR sendCoins interface
This commit is contained in:
parent
04f4891291
commit
2e9e207486
1 changed files with 3 additions and 2 deletions
|
|
@ -99,11 +99,12 @@ function balance (account, cryptoCode) {
|
||||||
return accountBalance(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)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => refreshWallet())
|
.then(() => refreshWallet())
|
||||||
.then(() => fetch('transfer_split', {
|
.then(() => fetch('transfer_split', {
|
||||||
destinations: [{ amount: cryptoAtoms, address }],
|
destinations: [{ amount: cryptoAtoms, address: toAddress }],
|
||||||
account_index: 0,
|
account_index: 0,
|
||||||
subaddr_indices: [],
|
subaddr_indices: [],
|
||||||
priority: 0,
|
priority: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue