Merge branch 'master' into fix_foundry_import

pull/2982/head
bunsenstraat 2 years ago committed by GitHub
commit 1a38613e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      apps/remix-ide/src/app/files/foundry-handle.js
  2. 8
      apps/remix-ide/src/app/files/git-handle.js
  3. 8
      apps/remix-ide/src/app/files/hardhat-handle.js
  4. 8
      apps/remix-ide/src/app/files/slither-handle.js
  5. 9
      apps/remix-ide/src/app/files/truffle-handle.js
  6. 8
      apps/remix-ide/src/app/plugins/remixd-handle.tsx

@ -15,4 +15,12 @@ export class FoundryHandle extends WebsocketPlugin {
constructor () { constructor () {
super(profile) super(profile)
} }
callPluginMethod(key, payload = []) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
} }

@ -15,4 +15,12 @@ export class GitHandle extends WebsocketPlugin {
constructor () { constructor () {
super(profile) super(profile)
} }
callPluginMethod(key, payload = []) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
} }

@ -15,4 +15,12 @@ export class HardhatHandle extends WebsocketPlugin {
constructor () { constructor () {
super(profile) super(profile)
} }
callPluginMethod(key, payload = []) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
} }

@ -16,4 +16,12 @@ export class SlitherHandle extends WebsocketPlugin {
constructor () { constructor () {
super(profile) super(profile)
} }
callPluginMethod(key, payload = []) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
} }

@ -15,4 +15,13 @@ export class TruffleHandle extends WebsocketPlugin {
constructor () { constructor () {
super(profile) super(profile)
} }
callPluginMethod(key, payload = []) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
} }

@ -71,6 +71,14 @@ export class RemixdHandle extends WebsocketPlugin {
} }
async callPluginMethod(key: string, payload?: any[]) {
if (this.socket.readyState !== this.socket.OPEN) {
console.log(`${this.profile.name} connection is not opened.`)
return false
}
return super.callPluginMethod(key, payload)
}
/** /**
* connect to localhost if no connection and render the explorer * connect to localhost if no connection and render the explorer
* disconnect from localhost if connected and remove the explorer * disconnect from localhost if connected and remove the explorer

Loading…
Cancel
Save