use extension method

This commit is contained in:
julian 2024-05-30 19:03:15 -06:00
parent 0454c88c4a
commit 0acc2f2a08

View file

@ -1687,12 +1687,6 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
);
}
String base64ToReverseHex(String source) =>
base64Decode(LineSplitter.split(source).join())
.reversed
.map((e) => e.toRadixString(16).padLeft(2, '0'))
.join();
/// Top level function which should be called wrapped in [compute]
Future<
({
@ -1774,7 +1768,7 @@ Future<List<SparkCoin>> _identifyCoins(
}
final serializedCoinB64 = data[0];
final txHash = base64ToReverseHex(data[1]);
final txHash = data[1].toHexReversedFromBase64;
final contextB64 = data[2];
final coin = LibSpark.identifyAndRecoverCoin(