joystream icon indicating copy to clipboard operation
joystream copied to clipboard

Fix entity_ownership_transfer extrinsic

Open iorveth opened this issue 6 years ago • 0 comments

Suppose we have Video as a Class, with only one Schema, where it has a same owner reference parentChannel.

If we want to move video entity a, which lives in channle entity channel_a controlled by Alice, to be owned by controller Bob as part of his channel channel_b, then we call transfer_entity_ownership(a, Bob, <new_channel_entity: channel_b>). In this call, it will be checked that:

  • a has inbound same owner reference count == 0
  • all property values of a which are same owner references have been provided new value in <new_channel_entity: channel_b>, where the new entity is owned by new owner Bob.

iorveth avatar Jun 10 '20 14:06 iorveth