fix bitcoind; add some scripts
This commit is contained in:
parent
96ec21079d
commit
daee1f894f
3 changed files with 38 additions and 2 deletions
|
|
@ -101,9 +101,9 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) {
|
|||
})
|
||||
}
|
||||
|
||||
function newAddress (account, cryptoCode, info) {
|
||||
function newAddress (account, info) {
|
||||
return new Promise((resolve, reject) => {
|
||||
checkCryptoCode(cryptoCode)
|
||||
checkCryptoCode(info.cryptoCode)
|
||||
const rpc = initRpc()
|
||||
rpc.getNewAddress((err, result) => {
|
||||
if (err) return reject(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue