Giter Club home page Giter Club logo

Comments (3)

pappas999 avatar pappas999 commented on June 13, 2024 1

hi @upalchowdhury thanks for raising this. Looks like you're having an issue with a contract and script that you created as opposed to one of the ones that comes in the chainlink-mix project? Can you confirm if you get the same output if you use the PriceFeedConsumer contract and the 02_read_price_feed.py script?

If the contract and script I mentioned above works ok, and it's just your custom script and contract that has issue, can you please raise this as a post on StackOverflow, and we can action there, as it's unrelated to this chainlink-mix project https://stackoverflow.com/tags/chainlink

from chainlink-mix.

upalchowdhury avatar upalchowdhury commented on June 13, 2024 1

@pappas999 Thanks for your response !!

I got it working. thanks for your hint on scripts which made me reinstall ganache cli. My initial port was 7545, changed it to 8545 might have solved the issue but not 100% sure.

I used solc 0.6.6 plus chainlink 0.6 contracts for this test.

One observation on the "02_read_price_feed.py script" the PriceFeedConsumer[-1] was throwing error but since i changed it read it from brownie-config.yaml it works.

=========error=======
Running 'scripts/price_feed_scripts/02_read_price_feed.py::main'...
File "brownie/_cli/run.py", line 49, in main
return_value, frame = run(
File "brownie/project/scripts.py", line 103, in run
return_value = f_locals[method_name](*args, **kwargs)
File "./scripts/price_feed_scripts/02_read_price_feed.py", line 6, in main
price_feed_contract = PriceFeedConsumer[-1]
File "brownie/network/contract.py", line 160, in getitem
return self._contracts[i]
IndexError: list index out of range
Terminating local RPC client...

====================

test/pricefeedtest.py works fine except it does not return or print anything, which might be expected. anyhow thanks again for your quick response.

from chainlink-mix.

pappas999 avatar pappas999 commented on June 13, 2024

no worries @upalchowdhury , glad to hear it's working!

from chainlink-mix.

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.