From fc3b07404315e19b27fd5b98026dd34216b0b725 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 21 Jun 2021 18:13:35 +0200 Subject: [PATCH] linting --- libs/remix-lib/src/execution/txExecution.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-lib/src/execution/txExecution.ts b/libs/remix-lib/src/execution/txExecution.ts index 035726c35e..bf6441e133 100644 --- a/libs/remix-lib/src/execution/txExecution.ts +++ b/libs/remix-lib/src/execution/txExecution.ts @@ -104,14 +104,14 @@ export function checkVMError (execResult, abi, contract) { if (!sign) continue if (returnDataHex === sign.replace('0x', '')) { customError = item.name - let functionDesc = fn.getFunction(item.name) - let decodedCustomErrorInputs = fn.decodeFunctionData(functionDesc, returnData) + const functionDesc = fn.getFunction(item.name) + const decodedCustomErrorInputs = fn.decodeFunctionData(functionDesc, returnData) decodedCustomErrorInputsClean = {} let devdoc = {} if (contract && fn.functions && Object.keys(fn.functions).length) { const functionSignature = Object.keys(fn.functions)[0] devdoc = contract.object.devdoc.errors[functionSignature][0] || {} - let userdoc = contract.object.userdoc.errors[functionSignature][0] || {} + const userdoc = contract.object.userdoc.errors[functionSignature][0] || {} if (userdoc) customError += ' : ' + (userdoc as any).notice } for (const input of functionDesc.inputs) {