@openzeppelin/hardhat-upgrades
Version:
[](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [](https://www.npmjs.org/package/@openzeppelin/h
22 lines • 669 B
JavaScript
export function isFullSolcOutput(output) {
if (output?.contracts == undefined || output?.sources == undefined) {
return false;
}
for (const file of Object.values(output.contracts)) {
if (file == undefined) {
return false;
}
for (const contract of Object.values(file)) {
if (contract?.evm?.bytecode == undefined) {
return false;
}
}
}
for (const file of Object.values(output.sources)) {
if (file?.ast == undefined || file?.id == undefined) {
return false;
}
}
return true;
}
//# sourceMappingURL=is-full-solc-output.js.map