dhiway / cord

CORD - Enterprise Blockchain Framework
https://cord.network
GNU General Public License v3.0
161 stars 112 forks source link

pallet-asset: Add tests for UnauthorizedOperation #521

Open Om-Thorat opened 2 weeks ago

Om-Thorat commented 2 weeks ago

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.