Skip to content
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

pallet-asset: Add tests for UnauthorizedOperation #521

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Om-Thorat
Copy link

@Om-Thorat Om-Thorat commented Nov 7, 2024

Fixes: #368

UnauthorizedOperation was returned by issue, transfer, status_change and their vc counter parts.

hence the lots of assert statements since it also requires creating the issue before operating on it like transfer and status_change.

The change to DID_01 is needed since the SubjectID's are compared to throw out UnauthorizedOperation else since they had the same SubjectIDs before it wouldn't work. Similar need for ACCOUNT_01.

@Om-Thorat Om-Thorat changed the title feat: Added tests for UnauthorizedOperation pallet-asset: Add tests for UnauthorizedOperation Nov 7, 2024
Copy link
Member

@vatsa287 vatsa287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vatsa287 vatsa287 requested a review from amarts November 11, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C4GT] Asset: Add tests for UnauthorizedOperation
2 participants