Giter VIP home page Giter VIP logo

Comments (6)

JGcarv avatar JGcarv commented on May 18, 2024

Hi! I'm interested in tackling this issue, since I'm still scared of open source contributions, and this one seems pretty manageable. So, just to make sure, here's what I've done: I cloned the whole project and then replaced all instances of 'Stoppable' to 'Pausable'.

Now, How do I run tests for it?

Thanks in advance and sorry for the silly question!

from openzeppelin-contracts.

federicobond avatar federicobond commented on May 18, 2024

Hi @JGcarv, thanks for taking the time to contribute to OpenZeppelin.

You should be able to run the tests with npm test after installing all dependencies (npm install) and running an instance of testrpc in another console.

testrpc is installed with npm install -g ethereumjs-testrpc

from openzeppelin-contracts.

JGcarv avatar JGcarv commented on May 18, 2024

Hey @federicobond , thanks for the reply!

So, I installed the dependencies and ran the tests(which were all passing) but when I tried to git push origin myBranch I got the following message:

remote: Permission to OpenZeppelin/zeppelin-solidity.git denied to JGcarv. fatal: unable to access 'https://github.com/OpenZeppelin/zeppelin-solidity.git/': The requested URL returned error: 403

Do you have any idea what it might be? Thanks!

from openzeppelin-contracts.

federicobond avatar federicobond commented on May 18, 2024

Yes, you cannot push directly to the OpenZeppelin fork because you are not a collaborator. You should make your own fork on GitHub and configure your local clone to push there, like this:

git remote rename origin upstream
git remote add origin [email protected]:JGcarv/zeppelin-solidity.git

Once you do that, you will be able to push your branch:

git push -u origin myBranch

If you want to pull updates from the official fork later, you can then do so like this:

git pull upstream master

from openzeppelin-contracts.

JGcarv avatar JGcarv commented on May 18, 2024

Yeah, that makes sense.

Anyway, I followed the steps and made a new pull request. Let me know if things do work out.

Also, thank you for your patience!

from openzeppelin-contracts.

maraoz avatar maraoz commented on May 18, 2024

Great work @JGcarv, closing this :)

from openzeppelin-contracts.

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.