-
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 InvalidAssetType
#374
Comments
Hi @vatsa287 |
Signed-off-by: hardik-pratap-singh <[email protected]>
To proceed to reach this error code of AssetType is a AssetType has 3 values so has So you can try encoding an invalid discriminant, and compare the decoded value associated from |
We need to simulate a situation where an We have an enum I think this should be the approach to this issue. I have also investigated into the previous PRs. Can I work on this issue ?? |
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
InvalidAssetType
for pallet/assetExpected Outcome
InvalidAssetType
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
[Low]
Category
[Test]
Sub Category
[Beginner friendly]
The text was updated successfully, but these errors were encountered: