Update messenger.js
Renaming multisig createTx and signTx to createTx_BTC and signTx_BTC
This commit is contained in:
parent
ef98882359
commit
6f4a863b97
@ -4707,7 +4707,7 @@
|
||||
const { redeemScript } = allMultiSigs[selectedMultisigAddress]
|
||||
const fee = parseFloat(getRef('send_fee').value.trim());
|
||||
console.debug(selectedMultisigAddress, receivers, amounts, fee);
|
||||
messenger.multisig.createTx(selectedMultisigAddress, redeemScript, receivers, amounts, fee).then(result => {
|
||||
messenger.multisig.createTx_BTC(selectedMultisigAddress, redeemScript, receivers, amounts, fee).then(result => {
|
||||
console.log(result);
|
||||
notify('Initiated transaction', 'success')
|
||||
closePopup();
|
||||
@ -4726,7 +4726,7 @@
|
||||
const banner = getRef('messages_container').querySelector('.signing-banner')
|
||||
const button = banner.querySelector('button')
|
||||
buttonLoader(button, true)
|
||||
messenger.multisig.signTx(pipeID).then(() => {
|
||||
messenger.multisig.signTx_BTC(pipeID).then(() => {
|
||||
getRef('messages_container').querySelector('.signing-banner').remove()
|
||||
notify('Transaction signed', 'success')
|
||||
if (messenger.pipeline[pipeID].disabled)
|
||||
|
||||
@ -1148,7 +1148,7 @@
|
||||
})
|
||||
}
|
||||
|
||||
MultiSig.createTx = function (address, redeemScript, receivers, amounts, fee = null, options = {}) {
|
||||
MultiSig.createTx_BTC = function (address, redeemScript, receivers, amounts, fee = null, options = {}) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
let addr_type = btcOperator.validateAddress(address);
|
||||
if (addr_type != "multisig" && addr_type != "multisigBech32")
|
||||
@ -1175,7 +1175,7 @@
|
||||
})
|
||||
}
|
||||
|
||||
MultiSig.signTx = function (pipeID) {
|
||||
MultiSig.signTx_BTC = function (pipeID) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (_loaded.pipeline[pipeID].disabled)
|
||||
return reject("Pipeline is already closed");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user