.journalLastChildIncludes('Debug the transaction to get more information.')
.journalLastChildIncludes('Debug the transaction to get more information.')
.click('*[data-id="deployAndRunClearInstances"]')
},
},
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal , using London VM Fork':function(browser: NightwatchBrowser){
'Should Compile and Deploy a contract which define a custom error, the error should be logged in the terminal , using London VM Fork':function(browser: NightwatchBrowser){
@ -165,8 +166,7 @@ module.exports = {
.click('*[data-id="settingsVMLondonMode"]')// switch to London fork
.click('*[data-id="settingsVMLondonMode"]')// switch to London fork
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c')// this account will be used for this test suite
.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){
letinputIndex=0
console.error(e.message)
for(constinputoffunctionDesc.inputs){
}
constinputKey=input.name||inputIndex
}
constv=decodedCustomErrorInputs[inputKey]
letinputIndex=0
for(constinputoffunctionDesc.inputs){
constinputKey=input.name||inputIndex
constv=decodedCustomErrorInputs[inputKey]
decodedCustomErrorInputsClean[inputKey]={
decodedCustomErrorInputsClean[inputKey]={
value: v.toString?v.toString():v
value: v.toString?v.toString():v
}
}
if(devdoc&&(devdocasany).params){
if(devdoc&&(devdocasany).params){
decodedCustomErrorInputsClean[input.name].documentation=(devdocasany).params[inputKey]// we add the developer documentation for this input parameter if any
decodedCustomErrorInputsClean[input.name].documentation=(devdocasany).params[inputKey]// we add the developer documentation for this input parameter if any