Chore: refactor generic wallet and wallet plugins
This commit is contained in:
parent
d2b7224c73
commit
b6d91f94bf
11 changed files with 110 additions and 87 deletions
|
|
@ -259,7 +259,7 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function sendCoins (tx) {
|
||||
return wallet.sendCoins(settings, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode)
|
||||
return wallet.sendCoins(settings, tx)
|
||||
}
|
||||
|
||||
function recordPing (deviceTime, version, model) {
|
||||
|
|
@ -279,7 +279,7 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function isHd (tx) {
|
||||
return wallet.isHd(settings, tx.cryptoCode)
|
||||
return wallet.isHd(settings, tx)
|
||||
}
|
||||
|
||||
function getStatus (tx) {
|
||||
|
|
@ -295,7 +295,7 @@ function plugins (settings, deviceId) {
|
|||
cryptoAtoms: tx.cryptoAtoms,
|
||||
isLightning: tx.isLightning
|
||||
}
|
||||
return wallet.newAddress(settings, info)
|
||||
return wallet.newAddress(settings, info, tx)
|
||||
}
|
||||
|
||||
function dispenseAck (tx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue