execTransactionFromModule method

  1. @override
Future<SafeContractEncodedCall> execTransactionFromModule({
  1. required ETHAddress to,
  2. BigInt? value,
  3. List<int>? data,
  4. SafeContractExecutionOpration operation = SafeContractExecutionOpration.call,
})
override

"stateMutability": "nonpayable", Executes an operation to to with native token value.

Parameters:

  • to: Destination address of the module transaction.
  • value: Native token value of the module transaction.
  • data: Data payload of the module transaction.
  • operation: Operation type of the module transaction

Implementation

@override
Future<SafeContractEncodedCall> execTransactionFromModule({
  required ETHAddress to,
  BigInt? value,
  List<int>? data,
  SafeContractExecutionOpration operation =
      SafeContractExecutionOpration.call,
}) async {
  final params = [to, value ?? BigInt.zero, data ?? <int>[], operation.value];
  return encodeTransactionCall(
    functionName: SafeContractFunction.execTransactionFromModule,
    params: params,
  );
}