From 095d0da2a5135e89251746220330b3500bb95c3e Mon Sep 17 00:00:00 2001 From: tomtomcrypto Date: Wed, 1 Nov 2023 15:14:12 +0000 Subject: [PATCH] remove debug code --- src/routes/evm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/evm/index.ts b/src/routes/evm/index.ts index 5c3d9c3..7c11f39 100644 --- a/src/routes/evm/index.ts +++ b/src/routes/evm/index.ts @@ -1075,7 +1075,7 @@ export default async function (fastify: FastifyInstance, opts: TelosEvmConfig) { let err = new TransactionError('Transaction error'); let output = addHexPrefix(receipt.output); if (output.startsWith(REVERT_FUNCTION_SELECTOR)) { - return addHexPrefix(rawResponse.eth.transactionHash); + err.errorMessage = `Error: VM Exception while processing transaction: reverted with reason string \'${parseRevertReason(output)}\'`; } else if (output.startsWith(REVERT_PANIC_SELECTOR)) { err.errorMessage = `Error: VM Exception while processing transaction: reverted with reason string \'${parsePanicReason(output)}\'`; } else {