generateAuth function

MoveCallBuilder generateAuth({
  1. String? package,
  2. Map<String, dynamic>? config,
})

Creates owner authority bound to the transaction sender.

Implementation

MoveCallBuilder generateAuth({String? package, Map<String, dynamic>? config}) {
  final packageAddress = package ??
      (config?['accountPackageId'] as String?) ??
      '@local-pkg/account';
  return (tx) => tx.moveCall(
        '$packageAddress::account::generate_auth',
      );
}