iroha
iroha copied to clipboard
[BUG]: Remove permission tokens from role on unregistration
Continuation of #3962.
I've just noticed that as well as removing token from account we should also remove tokens from roles.
Problem is that roles aren't mutable right now.
- we can unregister and register a role
- we can make an internal update role isi
- we can unregister and register a role
currently role is removed on unregistration from every account so we have to do a lot of bookkeeping to do that
- we can make an internal update role isi
and only allow execution from executor? maybe consider updating roles?