Comments (7)
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.
@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.
Ok , I'll start working on this issue as the next thing .Thank you
from cord.
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 ?
from cord.
@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.
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
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
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.
@zeel991 Interesting open the PR, lets check with GH tests.
from cord.
Related Issues (20)
- [C4GT] Asset: Add tests for `AssetIdAlreadyExists` HOT 1
- [C4GT] Asset: Add tests for `InvalidAssetValue` HOT 3
- [C4GT] Asset: Add tests for `InvalidAssetType` HOT 3
- [C4GT] Asset: Add tests for `AssetIdNotFound` HOT 2
- [C4GT] Asset: Add tests for `AssetNotActive` HOT 1
- [C4GT] Asset: Add tests for `InstanceNotActive` HOT 2
- [C4GT] Asset: Add tests for `OverIssuanceLimit` HOT 1
- [C4GT] Asset: Add tests for `DistributionLimitExceeded` HOT 3
- [C4GT] Asset: Add tests for `AssetInstanceNotFound` HOT 3
- [C4GT] Asset: Add tests for `AssetInSameState` HOT 4
- [C4GT] Asset: Add tests for transfer of asset HOT 2
- [C4GT] Asset: Add tests for status_change of asset HOT 4
- Update network-score pallet to match specifications
- [Deprecation] remove storage getters (pallet::getter) usage from all pallets HOT 3
- asset
- [C4GT] Add extrinsic documentation
- Benchmarking Fails with error: not all trait items implemented, missing: `plan_config_change`, `report_equivocation` HOT 1
- [RFE, Discussion, Question]: Exploring possibility of using `Identifiers` from application side for performance improvement of CORD
- membership: Membership fails to run while running on Runtime Config
- Multi-Runtime configuration with smart contracts support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cord.