mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
use extension method
This commit is contained in:
parent
0454c88c4a
commit
0acc2f2a08
1 changed files with 1 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue