|
|
|
@ -159,6 +159,9 @@ export class Transactions { |
|
|
|
|
processTx(this.txRunnerInstance, payload, true, (error, value: VMexecutionResult) => { |
|
|
|
|
if (error) return cb(error) |
|
|
|
|
const result: RunTxResult = value.result |
|
|
|
|
if (result.execResult && result.execResult.exceptionError && result.execResult.exceptionError.errorType === 'EvmError') { |
|
|
|
|
return cb(result.execResult.exceptionError.error) |
|
|
|
|
} |
|
|
|
|
if ((result as any).receipt?.status === '0x0' || (result as any).receipt?.status === 0) { |
|
|
|
|
try { |
|
|
|
|
const msg = `0x${result.execResult.returnValue.toString('hex') || '0'}` |
|
|
|
|