From aacba0cca63fe05327dc2b0a2054b633ab92a87c Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 20 Mar 2023 23:55:18 +0530 Subject: [PATCH] Bug fixes --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 34e4d21..d69b883 100644 --- a/index.html +++ b/index.html @@ -3489,10 +3489,15 @@ document.getElementById('create_multisig_button').addEventListener('click', () => { if (getRef('add_self_check').checked) selectedMembers.add(floGlobals.myFloID) - const selctedPubKeys = [...selectedMembers].map(id => floGlobals.pubKeys[id]); + const selctedPubKeys = [...selectedMembers].map(id => { + if (id === floGlobals.myFloID) + return floDapps.user.public + return floGlobals.pubKeys[id] + }); const minRequired = parseInt(getRef('min_sign_required').value.trim()); const label = getRef('multisig_label').value.trim(); buttonLoader('create_multisig_button', true) + console.log('creating multisig address', selctedPubKeys, minRequired) messenger.multisig.createAddress(selctedPubKeys, minRequired).then(multisigAddress => { console.log('created multisig address', multisigAddress) compactIDB.writeData('multisigLabels', label, multisigAddress).then(() => {