fix listen on truffle compilation

pull/2894/head
yann300 2 years ago
parent bbe2509b75
commit 39491cd18c
  1. 2
      libs/remix-ui/run-tab/src/lib/actions/events.ts
  2. 2
      libs/remixd/src/services/truffleClient.ts

@ -55,6 +55,8 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => {
plugin.on('foundry', 'compilationFinished', (file, source, languageVersion, data) => broadcastCompilationResult('foundry', plugin, dispatch, file, source, languageVersion, data))
plugin.on('truffle', 'compilationFinished', (file, source, languageVersion, data) => broadcastCompilationResult('truffle', plugin, dispatch, file, source, languageVersion, data))
plugin.on('udapp', 'setEnvironmentModeReducer', (env: { context: string, fork: string }, from: string) => {
plugin.call('notification', 'toast', envChangeNotification(env, from))
setExecutionContext(plugin, dispatch, env)

@ -60,7 +60,7 @@ export class TruffleClient extends PluginClient {
listenOnTruffleCompilation () {
try {
const buildPath = utils.absolutePath('out', this.currentSharedFolder)
const buildPath = utils.absolutePath('build/contracts', this.currentSharedFolder)
this.watcher = chokidar.watch(buildPath, { depth: 3, ignorePermissionErrors: true, ignoreInitial: true })
const compilationResult = {
input: {},

Loading…
Cancel
Save