Git Product home page Git Product logo

Comments (5)

cromewar avatar cromewar commented on August 17, 2024 1

Excellent context, @AlejandroPintosAlcarazo. I will add and update section 14 to assess the import difference.

from foundry-full-course-f23.

EngrPips avatar EngrPips commented on August 17, 2024

This will be attended to appropriately as soon as possible.

from foundry-full-course-f23.

cromewar avatar cromewar commented on August 17, 2024

Hello @AlejandroPintosAlcarazo, the source of the problem here is that Chainlink keeps changing occasionally and moving things over.

The solution is to add shared to the import like this:

import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

from foundry-full-course-f23.

cromewar avatar cromewar commented on August 17, 2024

I have to ask, though, @AlejandroPintosAlcarazo, you mentioned that on the video, the import goes like this:

import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

Without the shared.

Am I missing something?

from foundry-full-course-f23.

Aletheios42 avatar Aletheios42 commented on August 17, 2024

now i understand what happened:
in seccion 3 fund me:
14. Creating your own libraries, the import looks like this:
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; (without share/)

but in 26. Deploying To Zksync
the import looks like this:
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; (with share/)

i just used the same code i build in the cap 14 to deploy to in sepolia, to deploy in zksync as well, the code changed between caps (i think without any indication), that s why i couldnt compile...

i checked now and if you add share it actually deploy in zksync.

so to sum up:
the version of the import in cap 14 and cap 26 doesnt match.

from foundry-full-course-f23.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.