generateAuthAsApp function
MoveCallBuilder
generateAuthAsApp({})
Generates full mutable account authority after checking the global app
whitelist. Permit<App> restricts the request to the module that defines App;
the returned authority is not bound to an owner, wrapper, or operation.
Implementation
MoveCallBuilder generateAuthAsApp(
{dynamic arguments,
String? package,
List<String> typeArguments = const [],
Map<String, dynamic>? config}) {
final packageAddress = package ??
(config?['accountPackageId'] as String?) ??
'@local-pkg/account';
return (tx) => tx.moveCall(
'$packageAddress::account_registry::generate_auth_as_app',
typeArguments: typeArguments,
arguments: normalizeMoveArguments(
tx,
withConfigDefaults(
arguments, config, const {'registry': 'accountRegistry'}),
[null, null],
['registry', 'Permit']),
);
}