msg=`\tThe transaction has been reverted to the initial state.\nReason provided by the contract: "${reason}".`
for(constitemofabi){
}else{
if(item.type==='error'){
msg='\tThe transaction has been reverted to the initial state.\nNote: The called function should be payable if you send value and the value you send should be less than your current balance.'
// ethers doesn't crash anymore if "error" type is specified, but it doesn't extract the errors. see:
msg=`\tThe transaction has been reverted to the initial state.\nReason provided by the contract: "${reason}".`
}else{
msg='\tThe transaction has been reverted to the initial state.\nNote: The called function should be payable if you send value and the value you send should be less than your current balance.'