update_main_auth_descriptor

@mount("ft4.update_main_auth_descriptor") operation update_main_auth_descriptor(new_desc: auth_descriptor)(source)

Sets provided auth descriptor as main auth descriptor, deleting the previous one.

Must be signed by an auth descriptor with accounts.auth_flags.ACCOUNT and it must be signed by all the signers contained in the new auth descriptor. Any combination of swapping single sig and multisig auth descriptors as main auth descriptor is valid, so long as the number of signatures requirements are fulfilled.

Throws an error if the new auth descriptor has any other value than GTV_NULL in the rules field.

Throws an error if the new auth descriptor does not have all the mandatory flags.

Parameters

new_desc

the auth descriptor which will become the new main auth descriptor of the account.

See also

core.accounts.auth_flags_config

for information on mandatory flags