futureversecom / trn-seed

Implementation of The Root Network node in Rust, based on the Substrate framework.
https://www.therootnetwork.com
Apache License 2.0
17 stars 5 forks source link

TRN-530 check token owner on simple offer #878

Closed Nick95550 closed 2 months ago

Nick95550 commented 2 months ago

This PR address an issue with the simple offer extrinsic in the marketplace pallet. The issue is that the extrinsic allows for simple offers to be made on tokens that have been burnt.

To fix this an additional check has been added to the pallet that checks the owner of the token of interest before processing. Returning an error NoTokenOwner in the failure case where the owner is None.

Related issue

PR checklist