allowance method

Future<BigInt> allowance({
  1. required String owner,
  2. required String spender,
})

Implementation

Future<BigInt> allowance({
  required String owner,
  required String spender,
}) async {
  final function = abi.getFunction('allowance')!;
  final response = await readSafe(
    function: function.addValues(values: [owner, spender]),
  );
  return response.outputs.first.castValue<BigInt>();
}