

使用hardhat upgrades进行升级时报错Error: The requested contract was not found. M...
source link: https://learnblockchain.cn/question/2722
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

5 使用hardhat upgrades进行升级时报错Error: The requested contract was not found. Make sure the source code is available for compilation at getContractNameAndRunValidation
问题:使用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');
}
应该是验证文件时出了问题,原文件和升级合约只是多了一个设置函数而,没有变动数据结构
Recommend
-
25
The State of Smart Contract Upgrades
-
12
New Tools to Securely Manage Smart Contract Upgrades
-
22
原文链接 使用 OpenZeppelin升级插件 部署的智能合约可以通过
-
9
本文在官方 hardhat 教程的基础上,加入了hardhat-deploy 插件的使用介绍,本文代码的 GitHub:https://github.com/wighawag/tutorial-hardhat-deploy 1. 设置环境 大多数...
-
6
Workshop Recap: Managing Smart Contract Upgrades
-
8
OpenZeppelin Upgrades教程: 在Hardhat下如何进行合约升级OpenZeppelin Upgrades教程: 在Hardhat下如何进行合约升级 ...
-
6
blockchain-hardhat-demo 使用hardhat进行智能合约开发 源码地址 https://github.com/nickphp/blockchain-hardhat-demo 首先安装nodejs开发环境(已安装的可直接...
-
8
手把手使用 Hardhat 和 Truffle 进行 React 项目设置 在开发智能合约时,使用开发环境非常重要。...
-
16
Install Instructions Install Hardhat npm install --save-dev hardhat Initiate a new Hardhat project (in empty directory) npx hardhat Install OpenZeppelin upgrades plu...
-
8
最近在学智能合约,本篇文章主要记录如何使用 HardHat 创建 NFT 智能合约。我们还将学习如何使用 Hardhat 写测试合约和部署智能合约。 安装 Node.js 首先,我们需要安装
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK