node=yo`<div>${treeView.render(typeofdetails[propertyName]==='object'?details[propertyName]:JSON.parse(details[propertyName]))}</div>`// catch in case the parsing fails.
try{
}catch(e){
node=yo`<div>${treeView.render(typeofdetails[propertyName]==='object'?details[propertyName]:JSON.parse(details[propertyName]))}</div>`// catch in case the parsing fails.
node=yo`<div>Unable to display "${propertyName}": ${e.message}</div>`
}catch(e){
}
node=yo`<div>Unable to display "${propertyName}": ${e.message}</div>`
modalDialogCustom.alert('This contract does not implement all functions and thus cannot be published.')
modalDialogCustom.alert('This contract does not implement all functions and thus cannot be published.')
}else{
}else{
publishOnSwarm(contract,appAPI,function(err){
publishOnSwarm(contract,appAPI,function(err){
if(err){
if(err){
try{
try{
err=JSON.stringify(err)
err=JSON.stringify(err)
}catch(e){}
}catch(e){}
modalDialogCustom.alert(yo`<span>Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).<br />
modalDialogCustom.alert(yo`<span>Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).<br />
${err}</span>`)
${err}</span>`)
}else{
}else{
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br />The Swarm address of the metadata file is available in the contract details.</span>`)
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br />The Swarm address of the metadata file is available in the contract details.</span>`)
}
}
},function(item){
},function(item){
// triggered each time there's a new verified publish (means hash correspond)
// triggered each time there's a new verified publish (means hash correspond)