simulateHandleOp method

Future<String> simulateHandleOp(
  1. dynamic op,
  2. EthereumAddress target,
  3. Uint8List targetCallData,
  4. {required Credentials credentials,
  5. Transaction? transaction}
)

The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.

Implementation

Future<String> simulateHandleOp(
  dynamic op,
  _i1.EthereumAddress target,
  _i2.Uint8List targetCallData, {
  required _i1.Credentials credentials,
  _i1.Transaction? transaction,
}) async {
  final function = self.abi.functions[15];
  assert(checkSignature(function, 'd6383f94'));
  final params = [
    op,
    target,
    targetCallData,
  ];
  return write(
    credentials,
    transaction,
    function,
    params,
  );
}