if(userdoc&&(userdocasany).notice)customError+=' : '+(userdocasany).notice// we append the user doc if any
}catch(e){
console.error(e.message)
}
}
letinputIndex=0
for(constinputoffunctionDesc.inputs){
constv=decodedCustomErrorInputs[input.name]
decodedCustomErrorInputsClean[input.name]={
value: v.toString?v.toString():v,
documentation:(devdocasany).params[input.name]// we add the developer documentation for this input parameter if any
constinputKey=input.name||inputIndex
constv=decodedCustomErrorInputs[inputKey]
decodedCustomErrorInputsClean[inputKey]={
value: v.toString?v.toString():v
}
if(devdoc&&(devdocasany).params){
decodedCustomErrorInputsClean[input.name].documentation=(devdocasany).params[inputKey]// we add the developer documentation for this input parameter if any