简体   繁体   English

如何使用 Chainlink Imports 验证通过 Remix 部署的合约?

[英]How to verify contracts that were deployed through Remix using Chainlink Imports?

Advice for verifying contracts that were deployed through Remix using Chainlink Imports?使用 Chainlink Imports验证通过 Remix 部署的合约的建议? Currently BSCScan (and I believe Etherscan) have the following limitation :目前 BSCScan(我相信 Etherscan)有以下限制

Contracts that use "imports" will need to have the code concatenated into one file as we do not support "imports" in separate files.使用“导入”的合约需要将代码连接到一个文件中,因为我们不支持在单独的文件中“导入”。

The issue is that VRFConsumerBase.sol has additional imports in it as well.问题是 VRConsumerBase.sol 中也有额外的导入。 Making the concatenation process a bit burdensome.使连接过程有点繁重。 I've done this following @Patrick Collins's video with Hardhat pretty easily but the project I'm working with is developed in Remix.很容易在@Patrick Collins 的带有安全帽的视频之后完成了此操作,但我正在使用的项目是在 Remix 中开发的。

This looks like it's working as designed unfortunately.不幸的是,这看起来像设计的那样工作。 Unless etherscan/bsscan etc changes their processes, you either have to do alot of manual appending of code, or just use something like hardhat to verify contracts除非 etherscan/bsscan 等更改他们的流程,否则您要么必须手动添加大量代码,要么仅使用安全帽之类的东西来验证合同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 Remix IDE 上的已部署合约下没有存储按钮 - Why isn't there a store button under deployed contracts on Remix IDE 如何使用 Remix 使 ERC20 智能合约要求以太币作为交易费用 - How to make ERC20 smart contracts ask for ether as transaction fee using Remix 使用 Remix 与 ABI 部署的合约交互 - Interact with deployed contract with ABI using Remix 松露验证 - 找不到模块'@chainlink/contracts/src/v0.6/VRFConsumerBase.sol' - Truffle verify - Cannot find module '@chainlink/contracts/src/v0.6/VRFConsumerBase.sol' 使用 Chainlink VRF 智能合约将错误消息“未使用的 function 参数”与fulfillRandomness 混合 - Remix error message 'Unused function parameter' with fulfillRandomness using Chainlink VRF Smart Contract 松露部署的合同无法通过Etherscan进行验证 - Truffle deployed contracts can't be verified through Etherscan 使用emba部署在流星应用程序服务器端的合同? - using contracts deployed by embark on the server side of a meteor app? 如何使用 Go 连接到已部署的智能合约? - How can I connect to already deployed smart contracts with Go? 如何使用 chainlink oracle 读取 json 文件中的数组 - How to read an array in a json file using a chainlink oracle 如何使用solidity在remix IDE中的数组中插入用户输入数据? - How to insert user input data in an array in remix IDE using solidity?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM