重新混合 IDE 出现错误 "Please select the folder in the file explorer where the metadata of contract can be found"

Remix IDE getting error "Please select the folder in the file explorer where the metadata of contract can be found"

我一直在学习 ethereuembook 中的教程。我在 Remix IDE 的浏览器目录中创建了一个名为 faucet.sol 的合约。合约编译成功。但是,当尝试部署时(在 Javascript VM 和带有 metamask 的注入 web3 环境中),我收到以下错误,

creation of faucet errored: Please select the folder in the file explorer where the metadata of faucet can be found

无法弄清楚如何生成此元数据和 select 文件资源管理器中的文件夹。

您必须在选项卡中打开合同。

  1. 单击 "File Explorers" 图标(见下图)

  2. 单击您的合同以在选项卡中打开

  3. 单击 "Deploy & Run Transactions" 图标

  4. 单击 "Deploy" 按钮