e2e fix when no error

pull/5370/head
aniket-engg 1 year ago committed by Aniket
parent 1ec78f17ac
commit a5efc935fe
  1. 2
      apps/remix-ide/src/blockchain/blockchain.tsx

@ -944,7 +944,7 @@ export class Blockchain extends Plugin {
? toBuffer(execResult.returnValue) ? toBuffer(execResult.returnValue)
: toBuffer(addHexPrefix(txResult.result) || '0x0000000000000000000000000000000000000000000000000000000000000000') : toBuffer(addHexPrefix(txResult.result) || '0x0000000000000000000000000000000000000000000000000000000000000000')
const compiledContracts = await this.call('compilerArtefacts', 'getAllContractDatas') const compiledContracts = await this.call('compilerArtefacts', 'getAllContractDatas')
const vmError = txExecution.checkError({ errorMessage: execResult.exceptionError.error, errorData: execResult.returnValue }, compiledContracts) const vmError = txExecution.checkError({ errorMessage: execResult.exceptionError ? execResult.exceptionError.error : '', errorData: execResult.returnValue }, compiledContracts)
if (vmError.error) { if (vmError.error) {
return cb(vmError.message) return cb(vmError.message)
} }

Loading…
Cancel
Save