You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds tests to check error code `DelegateAlreadyAdded`.
This error code is checked for methods
- add_delegate
- add_delegator
- add_admin_delegate
all of which calls `space_delegate_addition` from where this error code originates.
Fixes: dhiway#282
Signed-off-by: Shreeevatsa N <vatsa@dhiway.com>
This PR adds tests to check error code `DelegateAlreadyAdded`.
This error code is checked for methods
- add_delegate
- add_delegator
- add_admin_delegate
all of which calls `space_delegate_addition` from where this error code originates.
Fixes: #282
Signed-off-by: Shreeevatsa N <vatsa@dhiway.com>
Description
Subtask under : cord-network/community#7
New testcase can be tested under
cargo test -p pallet-chain-space
after adding it in the code.Goals
DelegateAlreadyAdded
for pallet/chain-spaceExpected Outcome
DelegateAlreadyAdded
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:
creating_a_duplicate_space_should_fail
which validates error codeSpaceAlreadyAnchored
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]
The text was updated successfully, but these errors were encountered: