Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomcrypto committed Nov 1, 2023
1 parent 79a9051 commit 095d0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 095d0da

Please sign in to comment.