setPaymentMetadata method

Future<void> setPaymentMetadata({
  1. required String hash,
  2. required String metadata,
  3. dynamic hint,
})
override

See BreezServices::set_payment_metadata

Implementation

Future<void> setPaymentMetadata({required String hash, required String metadata, dynamic hint}) {
  var arg0 = _platform.api2wire_String(hash);
  var arg1 = _platform.api2wire_String(metadata);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_set_payment_metadata(port_, arg0, arg1),
    parseSuccessData: _wire2api_unit,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kSetPaymentMetadataConstMeta,
    argValues: [hash, metadata],
    hint: hint,
  ));
}