-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add omni account origin #3117
Add omni account origin #3117
Conversation
) -> DispatchResult { | ||
let _ = T::TEECallOrigin::ensure_origin(origin)?; | ||
let omni_account = | ||
LinkedIdentityHashes::<T>::get(account_hash).ok_or(Error::<T>::IdentityNotFound)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that who
sent to link_identity
is the OmniAccount? So, the OmniAccount should exist before linking any account, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no - nothing changed for link_identity
LinkedIdentityHashes
contains now the mapping member_account_hash <> omni-account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean who
should be the omni-account even in the current impl
Context
As topic, other with two extra extrinsics:
dispatch_as_omni_account
dispatch_as_signed