Giter VIP home page Giter VIP logo

Comments (4)

pappas999 avatar pappas999 commented on June 2, 2024 2

Hi @RafaelVidaurre , thanks for raising this. Looks to be a bug with the logic around the ==0 vs == -1. That if statement should only return true if you're not working on a local network (ie you're working on a public network that's integrated to a real Chainlink network).

If working on a local network, you can't really use the 'request-random-number' task, because there's no integration to a real Chainlink network. Take a look at the unit tests to see what can be done when working locally

Also, if you'd like to contribute to improving our hardhat starter kit, you can raise a PR on our starter kit to correct the bug, and we can then review it and have it merged to the main repository

from hardhat-starter-kit.

RafaelVidaurre avatar RafaelVidaurre commented on June 2, 2024 1

@pappas999 thanks for clarifying this, I understand now what my options are. I'll see if I can submit a PR to improve this part. So, more than the random number = 0 being a bug, it is a limitation when working locally. So I guess the only real issue here is the logic by which we output these messages to the console, and maybe that we should mention the differences between working locally vs working with a test net for development.

from hardhat-starter-kit.

pappas999 avatar pappas999 commented on June 2, 2024

Correct, looks like the issue is in the logic as to whether to print that statement to the console or not, because it's looking for when it's a local network, whereas it should be looking for when it's not a local network (and we have a 0 result)

from hardhat-starter-kit.

PatrickAlphaC avatar PatrickAlphaC commented on June 2, 2024

Closing this for now, but feel free to follow up.

from hardhat-starter-kit.

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.