FUNCTION
set_main_auth_descriptor
function set_main_auth_descriptor(account: account, account_auth_descriptor: account_auth_descriptor)Sets an auth descriptor as main_auth_descriptor of the account
Using this function directly on a user account might end up leaving it misconfigured. It's
strongly advised to use update_main_auth_descriptor if the main auth descriptor should be
changed.
Can only be called from an operation.
Throws "MAIN AUTH DESCRIPTOR EXISTS" if the account has a main auth descriptor already.
Parameters
- account — the account to set the main auth descriptor for
- account_auth_descriptor — an auth descriptor already registered to the account which should become the main one
© 2024 Chromia