From 2d1fc5151313acc1f142c78324cd9a13b5e5236e Mon Sep 17 00:00:00 2001 From: Laurens Verspeek Date: Wed, 17 Nov 2021 13:53:04 +0100 Subject: [PATCH 1/7] small fix login --- plugins/blockchain.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/blockchain.js b/plugins/blockchain.js index b128db90..76ff122a 100644 --- a/plugins/blockchain.js +++ b/plugins/blockchain.js @@ -128,10 +128,10 @@ export default (context, inject) => { account = { accountName, address: this.bsc.wallet.address } } } - if (account) { account.blockchain = blockchain account.provider = providerName + await this.connectAccount(blockchain, account) this.account = account return true } @@ -317,11 +317,7 @@ export default (context, inject) => { return await this.sdk.force.getTaskIndexFromLeaf(leafhash, tasks) }, async connectAccount (chain, account) { - try { - return await this.sdk.connectAccount(chain === 'eos' ? this.eos.wallet.provider.signatureProvider : this.bsc.web3, account) - } catch (error) { - console.error(error) - } + return await this.sdk.connectAccount(chain === 'eos' ? this.eos.wallet.provider.signatureProvider : this.bsc.web3, account) }, async recoverPublicKey () { From af6cf40157378bed22d90623b2020faaa47210c7 Mon Sep 17 00:00:00 2001 From: Noman Jabbar Date: Wed, 17 Nov 2021 17:12:48 +0100 Subject: [PATCH 2/7] generate keypair shows keypair details instead of login with it --- components/BscWallet.vue | 62 +++++++++++++++++++++++++++++++++++----- 1 file changed, 55 insertions(+), 7 deletions(-) diff --git a/components/BscWallet.vue b/components/BscWallet.vue index 45cad5dd..3f3a0b37 100644 --- a/components/BscWallet.vue +++ b/components/BscWallet.vue @@ -1,7 +1,7 @@ diff --git a/pages/campaigns/_id/edit.vue b/pages/campaigns/_id/edit.vue new file mode 100644 index 00000000..bee2e598 --- /dev/null +++ b/pages/campaigns/_id/edit.vue @@ -0,0 +1,345 @@ +