getPair method

Future<String> getPair({
  1. required String tokenA,
  2. required String tokenB,
})

Implementation

Future<String> getPair({
  required String tokenA,
  required String tokenB,
}) async {
  final function = abi.getFunction('getPair')!;

  final result = await readSafe(
    function: function.addValues(values: [tokenA, tokenB]),
  );

  return result.outputs.first.value as String;
}