diff --git a/src/components/admin/marketPlaceSlider/marketPlaceSlide.vue b/src/components/admin/marketPlaceSlider/marketPlaceSlide.vue index fe0dba83..852762dd 100644 --- a/src/components/admin/marketPlaceSlider/marketPlaceSlide.vue +++ b/src/components/admin/marketPlaceSlider/marketPlaceSlide.vue @@ -285,6 +285,7 @@ export default { return { /// TODO: Need to do it in a neat way authToken: localStorage.getItem("authToken"), + accessToken:localStorage.getItem("accessToken"), eventToAirdrop: {}, stickyNoteTitle: "💡 InfoBox", selectedEvent: null, @@ -396,7 +397,7 @@ export default { else if (this.simpleData === "") { throw new Error(this.notifyErr('Enter Wallet addresses and respective token value')) } - const web3 = await loadweb3() + const web3 = await loadweb3(this.selectedChain) const contract = new web3.eth.Contract(erc20ABI, this.depositTokenAddress); this.feeStructure.symbol = await contract.methods.symbol().call(); console.log(this.simpleData) @@ -453,7 +454,7 @@ export default { if (this.proceed) { try { this.isLoading = true - const web3 = await loadweb3(); + const web3 = await loadweb3(this.selectedChain); this.accounts = await web3.eth.getAccounts(); const signerAddress = this.accounts[0] const requestData = this.newData @@ -512,6 +513,7 @@ export default { parsedValue["externalRecordId"] = dbTreeId.toString() parsedValue["contractAddress"] = this.depositTokenAddress.toString() parsedValue["appBaseUrl"] = this.selectedTool.meta.appBaseUrl.toString() + parsedValue["chainId"] = this.selectedChain console.log(parsedValue) this.flash.value = JSON.stringify(parsedValue) const index = this.eventToAirdrop.actions.findIndex((x) => { @@ -519,6 +521,7 @@ export default { }) if (index > -1) { this.eventToAirdrop.actions[index] = this.flash + this.eventToAirdrop["isRewardDistribution"] = true console.log(this.eventToAirdrop) const url = `${this.$config.studioServer.BASE_URL}api/v1/project`; let headers = { @@ -591,8 +594,7 @@ export default { async addMerkelTree(newRoot, ipfsHash, depositToken, tokenBalance) { try { console.log(newRoot, ipfsHash, depositToken, tokenBalance) - const web3 = await loadweb3(); - console.log(web3); + const web3 = await loadweb3(this.selectedChain); // this.accounts = await web3.eth.getAccounts(); // console.log(this.accounts); const address = getAddress(parseInt(this.selectedChain)) diff --git a/src/components/participant/Action.vue b/src/components/participant/Action.vue index 5298f0d7..35005c78 100644 --- a/src/components/participant/Action.vue +++ b/src/components/participant/Action.vue @@ -5,7 +5,7 @@