mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 12:54:38 +00:00
Remove unnecessary reverse of txId
This commit is contained in:
parent
bd9e6b7ab0
commit
9a3c46f3e5
1 changed files with 3 additions and 11 deletions
|
@ -35,7 +35,6 @@ import 'package:cw_core/utils/file.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:hex/hex.dart';
|
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:rxdart/subjects.dart';
|
import 'package:rxdart/subjects.dart';
|
||||||
|
@ -623,16 +622,9 @@ abstract class ElectrumWalletBase
|
||||||
final ins = <bitcoin_base.BtcTransaction>[];
|
final ins = <bitcoin_base.BtcTransaction>[];
|
||||||
|
|
||||||
for (final vin in original.inputs) {
|
for (final vin in original.inputs) {
|
||||||
try {
|
final txHex = await electrumClient.getTransactionHex(hash: vin.txId);
|
||||||
final id = HEX.encode(HEX.decode(vin.txId).reversed.toList());
|
|
||||||
final txHex = await electrumClient.getTransactionHex(hash: id);
|
|
||||||
final tx = bitcoin_base.BtcTransaction.fromRaw(txHex);
|
final tx = bitcoin_base.BtcTransaction.fromRaw(txHex);
|
||||||
ins.add(tx);
|
ins.add(tx);
|
||||||
} catch (_) {
|
|
||||||
ins.add(bitcoin_base.BtcTransaction.fromRaw(
|
|
||||||
await electrumClient.getTransactionHex(hash: vin.txId),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ElectrumTransactionBundle(original,
|
return ElectrumTransactionBundle(original,
|
||||||
|
|
Loading…
Reference in a new issue