Open vatsa287 opened 7 months ago
assign it to me i am making a pull request please merge it
hey @amarts in this project we have to assert for Maximum Members Exceeded For The Block and we need to add this test to pallets/network-membership path that should pass the Cargo test. Have I got the right idea? let me know if I am wrong otherwise please assign me this issue so I can start working on it. Thankyou
@PriyaD17
Yes, the storage map has compile time upper bound set to type MaxMembersPerBlock: Get<u32>;
for the storage map MembershipsExpiresOn
. Try adding more than this number for the error to hit.
Hello @PriyaD17 @Aloneking789 Pls directly raise the PR. Thanks.
@vatsa287 Pls assign it if possible.
Description
Subtask under : https://github.com/cord-network/community/issues/7
New testcase can be tested under
cargo test -p pallet-network-membership
after adding it in the code.Goals
MaxMembersExceededForTheBlock
for pallet/network-membershipExpected Outcome
MaxMembersExceededForTheBlock
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:
test_duplicate_member_request
which validates error codeMembershipAlreadyAcquired
Mockups / Wireframes
NA
Product Name
CORD
Organization Name
Dhiway
Domain
Blockchain
Tech Skills Needed
Rust
Mentor(s)
@amarts
Complexity
[Low]
Category
[Test]
Sub Category
[Beginner friendly]