if(executionContext.getProvider()!=='vm')returncb('plugin API does not allow sending a transaction through a web3 connection. Only vm mode is allowed')
executionContext.detectNetwork((error,network)=>{
if(error)returncb(error)
if(network.name==='Main'&&network.id==='1'){
returncb('It is not allowed to make this action against mainnet')
@ -373,7 +373,10 @@ module.exports = class CompileTab {
modalDialogCustom.alert(yo`<span>Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).<br />
${err}</span>`)
}else{
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br />The Swarm address of the metadata file is available in the contract details.</span>`)