getUserOpHash method

Future<Uint8List> getUserOpHash({
  1. required dynamic userOp,
})

Implementation

Future<Uint8List> getUserOpHash({required userOp}) async {
  try {
    print("getUserOpHash");
    List<dynamic> userOpList = [userOp];

    List<dynamic> args = [];
    args.add(userOp);
    final result = await read(
      functionName: 'getUserOpHash',
      args: userOpList,
      // credentials: credentials,getUserOpHash
    );
    // print(result[0] as Uint8List);
    return result[0] as Uint8List;
  } on Exception catch (e) {
    // TODO
    print(e);
    return Uint8List.fromList([]);
  }
}