-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C4GT] Asset: Add tests for DistributionLimitExceeded
#379
Comments
Hey @vatsa287 , I would like to work on this issue. |
Hey Vinit , you can raise the PR , if everything seems right , you will be assigned . |
hey @vatsa287 I would like to work on this issue |
Hello @PriyaD17 |
Hey @VedantKhairnar Thanks for checking in, just got busy in exams and and all, will def reach out if I get stuck anywhere, once again thanks for asking |
Hi @vatsa287 |
To fix this,
parameter_types! {
pub const MaxEncodedValueLength: u32 = 1_024;
pub const MaxAssetDistribution: u32 = u32::MAX;
}
|
@vatsa287 I believe this needs to be done in 2 steps. Firstly, setting up the new parameter for testing. In the code, updating the Ig this enough? Should I start working on the issue or is there anything else I need to consider as well @vatsa287 ? |
@ritankarsaha |
Sure @vatsa287 |
I have fixed this issue and opened a PR at #552 |
@vatsa287 I had a doubt while I was going through the The constants pub(crate) const DID_00: SubjectId = SubjectId(AccountId32::new([1u8; 32]));
pub(crate) const DID_01: SubjectId = SubjectId(AccountId32::new([2u8; 32])); // just for demo purpose. |
Description
Subtask under : cord-network/community#7
New testcase can be tested under
cargo test -p pallet-asset
after adding it in the code.Goals
DistributionLimitExceeded
for pallet/assetExpected Outcome
DistributionLimitExceeded
being returned properly in all the possible calls.Acceptance Criteria
NA
Implementation Details
Look at other test cases, and add a test case for the same.
Ex: check method
asset_create_should_succeed
which validates creation of asset.Mockups / Wireframes
NA
Product Name
CORD
Organization Name
Dhiway
Domain
Blockchain
Tech Skills Needed
Rust
Mentor(s)
@amarts @vatsa287
Complexity
[Medium]
Category
[Test]
Sub Category
[Beginner friendly]
The text was updated successfully, but these errors were encountered: