简体   繁体   English

为什么我不能将其导入本地文件

[英]why I cannot import this to my local file

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol";

I cannot import this to my local artifact when I comile this as a mock, does anyone meet this before?当我将其编译为模拟时,我无法将其导入到我的本地工件中,以前有人遇到过吗?

Help!!!!!帮助!!!!!

I thnik the problem is that the compiler parses your code as javascript not as solidity我认为问题是编译器将您的代码解析为 javascript 而不是 solidity

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

相关问题 为什么我不能从资产文件夹中读取文件? - Why can i not read a file from my assets folder? 为什么当我尝试使用 geth 在本地计算机上建立私有链时,“正在生成 DAG”和“寻找对等点”一直显示? - why 'Generating DAG in progress' and 'Looking for peers' keep showing forever when I try to use geth to build up a private chain on my local computer? 为什么我不能将私钥导入元掩码? - Why I can't import private key to metamask? 为什么我收到以下 Chainlink 错误:无法估计气体 - Why am I receiving the following Chainlink error: cannot estimate gas 为什么我不能在宠物店里买到100以太? - Why i cannot get 100 ether in pet-shop? 当我想将 remix 连接到我的本地仲裁网络时,我使用哪个端口? - which port I use when I want to connect remix to my local quorum network? 为什么会出现错误:在 truffle 上编译时找不到导入 - Why do I get the error: Could not find import, when compiling on truffle 如何借助 web3j 在 android 应用程序中使用私钥导入我的以太坊钱包? - How do i import my ethereum wallet using private key in android app with the help of web3j? 为什么我可以在一个 function 而不是另一个中访问我的合同 - Why I can access my contract in one function but not another one 为什么我没有看到我的智能合约进入区块链? - Why am I not seeing my smart contract enter the blockchain?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM