pull/5298/head
yann300 1 month ago committed by Aniket
parent 64a32004a3
commit eaf3c8ed25
  1. 4
      apps/remix-ide/src/app/tabs/runTab/model/recorder.js
  2. 14
      apps/remix-ide/src/app/udapp/run-tab.tsx

@ -21,7 +21,7 @@ const profile = {
/**
* Record transaction as long as the user create them.
*/
class Recorder extends Plugin {
export class Recorder extends Plugin {
constructor (blockchain) {
super(profile)
this.event = new EventManager()
@ -328,5 +328,3 @@ class Recorder extends Plugin {
})
}
}
module.exports = Recorder

@ -1,17 +1,17 @@
import React from 'react' // eslint-disable-line
import {RunTabUI} from '@remix-ui/run-tab'
import {ViewPlugin} from '@remixproject/engine-web'
import { RunTabUI } from '@remix-ui/run-tab'
import { ViewPlugin } from '@remixproject/engine-web'
import isElectron from 'is-electron'
import {addressToString} from '@remix-ui/helper'
import {InjectedProviderDefault} from '../providers/injected-provider-default'
import {InjectedCustomProvider} from '../providers/injected-custom-provider'
import { addressToString } from '@remix-ui/helper'
import { InjectedProviderDefault } from '../providers/injected-provider-default'
import { InjectedCustomProvider } from '../providers/injected-custom-provider'
import * as packageJson from '../../../../../package.json'
import { EventManager } from '@remix-project/remix-lib'
import type { Blockchain } from '../../blockchain/blockchain'
import type { CompilerArtefacts } from '@remix-project/core-plugin'
// import type { NetworkModule } from '../tabs/network-module'
// import type FileProvider from '../files/fileProvider'
const Recorder = require('../tabs/runTab/model/recorder.js')
import { Recorder } from '../tabs/runTab/model/recorder'
const _paq = (window._paq = window._paq || [])
const profile = {
@ -90,7 +90,7 @@ export class RunTab extends ViewPlugin {
async setEnvironmentMode(env) {
const canCall = await this.askUserPermission('setEnvironmentMode', 'change the environment used')
if (canCall) {
env = typeof env === 'string' ? {context: env} : env
env = typeof env === 'string' ? { context: env } : env
this.emit('setEnvironmentModeReducer', env, this.currentRequest.from)
}
}

Loading…
Cancel
Save