fix: use opid variable
This commit is contained in:
parent
7d07964e7e
commit
44cf7f6c41
1 changed files with 5 additions and 5 deletions
|
|
@ -71,11 +71,11 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) {
|
|||
})
|
||||
})
|
||||
}
|
||||
const checker = async () => {
|
||||
return pRetry(checkSendStatus, { retries: 20, minTimeout: 300, factor: 1.05 })
|
||||
}
|
||||
|
||||
const checker = opid => pRetry(() => checkSendStatus(opid), { retries: 20, minTimeout: 300, factor: 1.05 })
|
||||
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => fetch('z_sendmany', ["ANY_TADDR", [{address, amount: coins}]]))
|
||||
.then(() => fetch('z_sendmany', ['ANY_TADDR', [{ address, amount: coins }]]))
|
||||
.then(checker)
|
||||
.then((res) => {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue