|
|
@ -157,7 +157,7 @@ export class CompileTabLogic { |
|
|
|
this.api.writeFile(configFilePath, fileContent) |
|
|
|
this.api.writeFile(configFilePath, fileContent) |
|
|
|
_paq.push(['trackEvent', 'compiler', 'runCompile', 'compileWithHardhat']) |
|
|
|
_paq.push(['trackEvent', 'compiler', 'runCompile', 'compileWithHardhat']) |
|
|
|
this.api.compileWithHardhat(configFilePath).then((result) => { |
|
|
|
this.api.compileWithHardhat(configFilePath).then((result) => { |
|
|
|
this.api.logToTerminal({ type: 'info', value: result }) |
|
|
|
this.api.logToTerminal({ type: 'log', value: result }) |
|
|
|
}).catch((error) => { |
|
|
|
}).catch((error) => { |
|
|
|
this.api.logToTerminal({ type: 'error', value: error }) |
|
|
|
this.api.logToTerminal({ type: 'error', value: error }) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -183,7 +183,7 @@ export class CompileTabLogic { |
|
|
|
this.api.writeFile(configFilePath, fileContent) |
|
|
|
this.api.writeFile(configFilePath, fileContent) |
|
|
|
_paq.push(['trackEvent', 'compiler', 'runCompile', 'compileWithTruffle']) |
|
|
|
_paq.push(['trackEvent', 'compiler', 'runCompile', 'compileWithTruffle']) |
|
|
|
this.api.compileWithTruffle(configFilePath).then((result) => { |
|
|
|
this.api.compileWithTruffle(configFilePath).then((result) => { |
|
|
|
this.api.logToTerminal({ type: 'info', value: result }) |
|
|
|
this.api.logToTerminal({ type: 'log', value: result }) |
|
|
|
}).catch((error) => { |
|
|
|
}).catch((error) => { |
|
|
|
this.api.logToTerminal({ type: 'error', value: error }) |
|
|
|
this.api.logToTerminal({ type: 'error', value: error }) |
|
|
|
}) |
|
|
|
}) |
|
|
|