.journalLastChildIncludes('Debug the transaction to get more information.')
.journalLastChildIncludes('Debug the transaction to get more information.')
},
'Should Compile and Deploy a contract which define a custom error in a library, the error should be logged in the terminal':function(browser: NightwatchBrowser){
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){
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
}
inputIndex++
}
break
}
}
// we check in the 'userdoc' if there's an user documentation for this error
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){
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