Giter Club home page Giter Club logo

Comments (7)

zeel991 avatar zeel991 commented on July 18, 2024

Hey @amarts , In this project we have to make a test which asserts that message already exists and we need to add this test in to network-score folder and that should pass three tests , namely Build , Cargo and test mentioned in the Readme.md File , Have I got the right idea ? let me know if I am wrong otherwise Tell me so i start to working on it
Thank you

from cord.

vatsa287 avatar vatsa287 commented on July 18, 2024

@zeel991 Yes you have to add new test method in tests.rs which,
asserts the error code MessageIdAlreadyExists for all methods used in lib.rs.
Example: MessageIdAlreadyExists is being returned from methods revise_rating, register_rating etc.
Then call cargo test -p pallet-network-score. If it passes proceed with pre PR checks as mentioned in README.

from cord.

zeel991 avatar zeel991 commented on July 18, 2024

Ok , I'll start working on this issue as the next thing .Thank you

from cord.

zeel991 avatar zeel991 commented on July 18, 2024

Hey @vatsa287 ,I have been trying to build cord in production mode using the command cargo build --production , but it is not working and giving error , It shows that unexpected argument '--production' found , my cargo version is 1.75.0 , I tried the command cargo build --release , which worked fine , what should I do , can you help solve the error ?
Screenshot 2024-02-10 160615

from cord.

vatsa287 avatar vatsa287 commented on July 18, 2024

@zeel991 Yes you can proceed to with cargo build --release.

@amarts Maybe I'll update README to reflect change from --production to --release.

from cord.

zeel991 avatar zeel991 commented on July 18, 2024

Thank you so much @vatsa287 , I wanted to share that while running the clippy command ( cargo clippy --all --no-deps --all-targets --features=runtime-benchmarks -- -D warnings) , I found a few errors , one was
Screenshot 2024-02-12 010954
I've currently just commented it out , but would appreciate your advice on this ,

After commenting , I got this Error and tried very hard but couldn't fix it
Screenshot 2024-02-12 012544
Can you Please Guide me as I have written the test but these issues wont let me get my PR merged .
Thank you

from cord.

vatsa287 avatar vatsa287 commented on July 18, 2024

@zeel991 Interesting open the PR, lets check with GH tests.

from cord.

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.