mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Merge branch 'flutter-upgrade' of https://github.com/cake-tech/cake_wallet into CW-182-allow-trusted-nodes
This commit is contained in:
@@ -189,7 +189,9 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
|
||||
accountIndex: walletAddresses.account!.id);
|
||||
} else {
|
||||
final output = outputs.first;
|
||||
final address = output.address;
|
||||
final address = output.isParsedAddress && (output.extractedAddress?.isNotEmpty ?? false)
|
||||
? output.extractedAddress!
|
||||
: output.address;
|
||||
final amount = output.sendAll
|
||||
? null
|
||||
: output.cryptoAmount!.replaceAll(',', '.');
|
||||
@@ -225,7 +227,7 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
|
||||
switch (priority) {
|
||||
case MoneroTransactionPriority.slow:
|
||||
return 24590000;
|
||||
case MoneroTransactionPriority.regular:
|
||||
case MoneroTransactionPriority.automatic:
|
||||
return 123050000;
|
||||
case MoneroTransactionPriority.medium:
|
||||
return 245029999;
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:cw_haven/api/structs/pending_transaction.dart';
|
||||
import 'package:cw_haven/api/transaction_history.dart'
|
||||
as haven_transaction_history;
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
// import 'package:cake_wallet/core/amount_converter.dart';
|
||||
import 'package:cw_core/amount_converter.dart';
|
||||
import 'package:cw_core/pending_transaction.dart';
|
||||
|
||||
class DoubleSpendException implements Exception {
|
||||
@@ -25,17 +25,13 @@ class PendingHavenTransaction with PendingTransaction {
|
||||
@override
|
||||
String get hex => '';
|
||||
|
||||
// FIX-ME: AmountConverter
|
||||
@override
|
||||
String get amountFormatted => '';
|
||||
// AmountConverter.amountIntToString(
|
||||
// cryptoCurrency, pendingTransactionDescription.amount);
|
||||
String get amountFormatted => AmountConverter.amountIntToString(
|
||||
cryptoCurrency, pendingTransactionDescription.amount);
|
||||
|
||||
// FIX-ME: AmountConverter
|
||||
@override
|
||||
String get feeFormatted => '';
|
||||
// AmountConverter.amountIntToString(
|
||||
// cryptoCurrency, pendingTransactionDescription.fee);
|
||||
String get feeFormatted => AmountConverter.amountIntToString(
|
||||
cryptoCurrency, pendingTransactionDescription.fee);
|
||||
|
||||
@override
|
||||
Future<void> commit() async {
|
||||
|
||||
Reference in New Issue
Block a user