getDecimals method

Future<int> getDecimals()

Implementation

Future<int> getDecimals() async {
  final function = abi.functions[4];
  assert(function.functionSelectorHex == "313ce567");
  final response = await readSafe(
    function: function.addValues(values: []),
  );
  return response.outputs.first.castValue<BigInt>().toInt();
}