"build:mainnet":"yarn run build:contracts && yarn run build:typescript && yarn run build:copy && CHAIN_ID=10 yarn run build:dump && yarn run build:typechain",
error.formattedMessage=`OVM Compiler Error (insert "// @unsupported: ovm" if you don't want this file to be compiled for the OVM):\n ${error.formattedMessage}`
}
returnerror
})
returnovmOutput
}
)
extendEnvironment(async(hre)=>{
if(hre.network.config.ovm){
hre.network.ovm=hre.network.config.ovm
letartifactsPath=hre.config.paths.artifacts
if(!artifactsPath.endsWith('-ovm')){
artifactsPath=artifactsPath+'-ovm'
}
letcachePath=hre.config.paths.cache
if(!cachePath.endsWith('-ovm')){
cachePath=cachePath+'-ovm'
}
// Forcibly update the artifacts object.
hre.config.paths.artifacts=artifactsPath
hre.config.paths.cache=cachePath
;(hreasany).artifacts=newArtifacts(artifactsPath)
// if typechain is present, send the typed bindings to an ovm-specific