|
|
@ -69,10 +69,8 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}: |
|
|
|
ir: '', |
|
|
|
ir: '', |
|
|
|
methodIdentifiers: methodIdentifiers |
|
|
|
methodIdentifiers: methodIdentifiers |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(result) |
|
|
|
|
|
|
|
return result |
|
|
|
return result |
|
|
|
} |
|
|
|
} |
|
|
|
// setOutput(_contract.name, compileReturnType())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ERROR
|
|
|
|
// ERROR
|
|
|
|
if (isCompilationError(output)) { |
|
|
|
if (isCompilationError(output)) { |
|
|
@ -118,10 +116,7 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}: |
|
|
|
}) |
|
|
|
}) |
|
|
|
const data = toStandardOutput(_contract.name, output) |
|
|
|
const data = toStandardOutput(_contract.name, output) |
|
|
|
remixClient.compilationFinish(_contract.name, _contract.content, data) |
|
|
|
remixClient.compilationFinish(_contract.name, _contract.content, data) |
|
|
|
// console.log(data)
|
|
|
|
|
|
|
|
setOutput(_contract.name, compileReturnType()) |
|
|
|
setOutput(_contract.name, compileReturnType()) |
|
|
|
// setLoadingSpinnerState(false)
|
|
|
|
|
|
|
|
// remixClient.call('compilationDetails' as any, 'showDetails', data)
|
|
|
|
|
|
|
|
} catch (err: any) { |
|
|
|
} catch (err: any) { |
|
|
|
remixClient.changeStatus({ |
|
|
|
remixClient.changeStatus({ |
|
|
|
key: 'failed', |
|
|
|
key: 'failed', |
|
|
|