added network to ipfs

revert-1044-m8
lianahus 4 years ago committed by Liana Husikyan
parent e0e8a2b4a8
commit 2736579e65
  1. 4
      apps/remix-ide/src/app/tabs/runTab/contractDropdown.js

@ -301,13 +301,12 @@ class ContractDropdownUI {
if (error) { if (error) {
return this.logCallback(error) return this.logCallback(error)
} }
_paq.push(['trackEvent', 'udapp', 'txTo', this.networkName])
self.event.trigger('newContractInstanceAdded', [contractObject, address, contractObject.name]) self.event.trigger('newContractInstanceAdded', [contractObject, address, contractObject.name])
const data = self.runView.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) const data = self.runView.compilersArtefacts.getCompilerAbstract(contractObject.contract.file)
self.runView.compilersArtefacts.addResolvedContract(helper.addressToString(address), data) self.runView.compilersArtefacts.addResolvedContract(helper.addressToString(address), data)
if (self.ipfsCheckedState) { if (self.ipfsCheckedState) {
_paq.push(['trackEvent', 'udapp', 'ipfsPublishChecked']) _paq.push(['trackEvent', 'udapp', `ipfsPublishTo_${this.networkName}`])
publishToStorage('ipfs', self.runView.fileProvider, self.runView.fileManager, selectedContract) publishToStorage('ipfs', self.runView.fileProvider, self.runView.fileManager, selectedContract)
} else { } else {
_paq.push(['trackEvent', 'udapp', 'ipfsPublishNotChecked']) _paq.push(['trackEvent', 'udapp', 'ipfsPublishNotChecked'])
@ -344,6 +343,7 @@ class ContractDropdownUI {
} }
deployContract (selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb) { deployContract (selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb) {
_paq.push(['trackEvent', 'udapp', 'DeployContractTo', this.networkName])
const { statusCb } = callbacks const { statusCb } = callbacks
if (!contractMetadata || (contractMetadata && contractMetadata.autoDeployLib)) { if (!contractMetadata || (contractMetadata && contractMetadata.autoDeployLib)) {
return this.blockchain.deployContractAndLibraries(selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb) return this.blockchain.deployContractAndLibraries(selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb)

Loading…
Cancel
Save