Fixed linting

pull/1358/head
ioedeveloper 3 years ago
parent c8cea2c4af
commit 389d114191
  1. 4
      libs/remix-lib/src/execution/txExecution.ts

@ -114,7 +114,7 @@ export function checkVMError (execResult, abi, contract) {
const functionSignature = Object.keys(fn.functions)[0]
// we check in the 'devdoc' if there's a developer documentation for this error
try {
devdoc = (contract.object.devdoc.errors && contract.object.devdoc.errors[functionSignature][0]) || {}
devdoc = (contract.object.devdoc.errors && contract.object.devdoc.errors[functionSignature][0]) || {}
} catch (e) {
console.error(e.message)
}
@ -130,7 +130,7 @@ export function checkVMError (execResult, abi, contract) {
for (const input of functionDesc.inputs) {
const inputKey = input.name || inputIndex
const v = decodedCustomErrorInputs[inputKey]
decodedCustomErrorInputsClean[inputKey] = {
value: v.toString ? v.toString() : v
}

Loading…
Cancel
Save