问题:使用hardhat upgrades进行升级时报错Error: The requested contract was not found. Make sure the source code is available for compilation at getContractNameAndRunValidation 检查,合约编译文件无问题,可以正常部署合约 追踪代码,定位到@openzeppelin/upgrades-core/src/validate/query.ts:46:11
if (contractName === undefined || runValidation === undefined) {
throw new Error('The requested contract was not found. Make sure the source code is available for compilation');
}
应该是验证文件时出了问题,原文件和升级合约只是多了一个设置函数而,没有变动数据结构