fix build: cast from remix-plugin types

pull/5370/head
yann300 2 years ago committed by Aniket
parent bda5dc88c8
commit aebe650f47
  1. 6
      apps/etherscan/src/app/utils/verify.ts
  2. 1
      apps/remix-ide/src/app/plugins/parser/services/code-parser-compiler.ts
  3. 1
      apps/remix-ide/src/app/plugins/parser/services/code-parser-gas-service.ts

@ -36,7 +36,8 @@ export const verify = async (
try {
const contractMetadata = getContractMetadata(
compilationResultParam.data,
// cast from the remix-plugin interface to the solidity one. Should be fixed when remix-plugin move to the remix-project repository
compilationResultParam.data as unknown as CompilationResult,
contractName
)
@ -50,7 +51,8 @@ export const verify = async (
const contractMetadataParsed = JSON.parse(contractMetadata)
const fileName = getContractFileName(
compilationResultParam.data,
// cast from the remix-plugin interface to the solidity one. Should be fixed when remix-plugin move to the remix-project repository
compilationResultParam.data as unknown as CompilationResult,
contractName
)

@ -105,6 +105,7 @@ export default class CodeParserCompiler {
this.plugin._buildIndex(data, source)
// cast from the remix-plugin interface to the solidity one. Should be fixed when remix-plugin move to the remix-project repository
this.plugin.nodeIndex.nodesPerFile[this.plugin.currentFile] = this.plugin._extractFileNodes(this.plugin.currentFile, this.plugin.compilerAbstract as unknown as lastCompilationResult)
await this.plugin.gasService.showGasEstimates()
this.plugin.emit('astFinished')

@ -41,6 +41,7 @@ export default class CodeParserGasService {
return
}
this.plugin.currentFile = await this.plugin.call('fileManager', 'file')
// cast from the remix-plugin interface to the solidity one. Should be fixed when remix-plugin move to the remix-project repository
this.plugin.nodeIndex.nodesPerFile[this.plugin.currentFile] = await this.plugin._extractFileNodes(this.plugin.currentFile, this.plugin.compilerAbstract as unknown as lastCompilationResult)
const gasEstimates = await this.getGasEstimates(this.plugin.currentFile)

Loading…
Cancel
Save