Commit 420dd82c authored by tizah's avatar tizah

fix: resolve conflict

parents 6046453f f4869399
...@@ -22,7 +22,7 @@ module.exports = { ...@@ -22,7 +22,7 @@ module.exports = {
.pause(8000) .pause(8000)
.getModalBody((value, done) => { .getModalBody((value, done) => {
if (value.indexOf('Metadata of "ballot" was published successfully.') === -1) browser.assert.fail('ipfs deploy failed', '', '') if (value.indexOf('Metadata of "ballot" was published successfully.') === -1) browser.assert.fail('ipfs deploy failed', '', '')
if (value.indexOf('dweb:/ipfs') === -1) browser.assert.fail('ipfs deploy failed', '', '') if (value.indexOf('ipfs://') === -1) browser.assert.fail('ipfs deploy failed', '', '')
done() done()
}) })
.modalFooterOKClick() .modalFooterOKClick()
......
...@@ -83,7 +83,7 @@ module.exports = { ...@@ -83,7 +83,7 @@ module.exports = {
.testFunction('last', .testFunction('last',
{ {
status: 'true Transaction mined and execution succeed', status: 'true Transaction mined and execution succeed',
'decoded input': { 'uint256 _po': { type: 'BigNumber', hex: '0x0a' } } 'decoded input': { 'uint256 _po': '10' }
}) })
.end() .end()
} }
......
...@@ -108,7 +108,7 @@ class PluginManagerComponent extends ViewPlugin { ...@@ -108,7 +108,7 @@ class PluginManagerComponent extends ViewPlugin {
} }
deactivateP (name) { deactivateP (name) {
this.appManager.deactivatePlugin(name) this.call('manager', 'deactivatePlugin', name)
_paq.push(['trackEvent', 'manager', 'deactivate', name]) _paq.push(['trackEvent', 'manager', 'deactivate', name])
} }
......
...@@ -128,7 +128,7 @@ export class TabProxy extends Plugin { ...@@ -128,7 +128,7 @@ export class TabProxy extends Plugin {
() => this.event.emit('switchApp', name), () => this.event.emit('switchApp', name),
() => { () => {
this.event.emit('closeApp', name) this.event.emit('closeApp', name)
this.appManager.deactivatePlugin(name) this.call('manager', 'deactivatePlugin', name)
}, },
icon icon
) )
......
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
var _paq = window._paq = window._paq || [] var _paq = window._paq = window._paq || []
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['disableCookies']); _paq.push(['disableCookies']);
_paq.push(['enableLinkTracking']);
_paq.push(['enableJSErrorTracking']); _paq.push(['enableJSErrorTracking']);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() { (function() {
var u="https://matomo.ethereum.org/"; var u="https://matomo.ethereum.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']) _paq.push(['setTrackerUrl', u+'matomo.php'])
......
...@@ -34,7 +34,7 @@ export default function publish (storage, fileProvider, fileManager, contract) { ...@@ -34,7 +34,7 @@ export default function publish (storage, fileProvider, fileManager, contract) {
${err}</span>`) ${err}</span>`)
} else { } else {
var result = yo`<div>${uploaded.map((value) => { var result = yo`<div>${uploaded.map((value) => {
return yo`<div><b>${value.filename}</b> : <pre>${value.output.url}</pre></div>` return yo`<div><b>${value.filename}</b> : <pre>${value.output.url.replace('dweb:/ipfs/', 'ipfs://')}</pre></div>`
})}</div>` })}</div>`
modalDialogCustom.alert(`Published ${contract.name}'s Metadata`, yo`<span>Metadata of "${contract.name.toLowerCase()}" was published successfully.<br> <pre>${result}</pre> </span>`) modalDialogCustom.alert(`Published ${contract.name}'s Metadata`, yo`<span>Metadata of "${contract.name.toLowerCase()}" was published successfully.<br> <pre>${result}</pre> </span>`)
} }
......
...@@ -52,6 +52,16 @@ export class RemixAppManager extends PluginManager { ...@@ -52,6 +52,16 @@ export class RemixAppManager extends PluginManager {
return isNative(from.name) return isNative(from.name)
} }
async deactivatePlugin (name) {
const [to, from] = [
await this.getProfile(name),
await this.getProfile(this.requestFrom)
]
if (this.canDeactivatePlugin(from, to)) {
await this.toggleActive(name)
}
}
async canCall (from, to, method, message) { async canCall (from, to, method, message) {
// Make sure the caller of this methods is the target plugin // Make sure the caller of this methods is the target plugin
if (to !== this.currentRequest.from) { if (to !== this.currentRequest.from) {
......
...@@ -166,6 +166,19 @@ export const DebuggerUI = (props: DebuggerUIProps) => { ...@@ -166,6 +166,19 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
} }
const web3 = await debuggerModule.getDebugWeb3() const web3 = await debuggerModule.getDebugWeb3()
try {
if (await web3.eth.net.getId() === 42) {
setState(prevState => {
return {
...prevState,
validationError: 'The Kovan network is unfortunately not supported.'
}
})
return
}
} catch (e) {
console.error(e)
}
let currentReceipt let currentReceipt
try { try {
currentReceipt = await web3.eth.getTransactionReceipt(txNumber) currentReceipt = await web3.eth.getTransactionReceipt(txNumber)
......
This diff is collapsed.
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
"eslint-plugin-promise": "4.2.1", "eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1", "eslint-plugin-standard": "4.0.1",
"ethereumjs-util": "^6.2.0", "ethereumjs-util": "^6.2.0",
"ethers": "^5.0.13", "ethers": "^5.1.4",
"events": "^3.0.0", "events": "^3.0.0",
"execr": "^1.0.1", "execr": "^1.0.1",
"exorcist": "^0.4.0", "exorcist": "^0.4.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment