mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
CW 781 replace all print statements with printV (#1733)
* replace all print statements with printV * restore backup error message * missing print statements, error fixes * Update cw_core/lib/utils/print_verbose.dart [skip ci] * Update cw_core/lib/utils/print_verbose.dart [skip ci] * CW-846: Correctly display balance (#1848) * Correctly display balance even with frozen coins * remove package= from AndroidMainfest.xml * update namespace * print -> printV --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
c74194abf4
commit
c78662fbfe
124 changed files with 578 additions and 343 deletions
|
@ -14,6 +14,7 @@ import 'package:cw_core/pathForWallet.dart';
|
|||
import 'package:cw_core/pending_transaction.dart';
|
||||
import 'package:cw_core/sync_status.dart';
|
||||
import 'package:cw_core/transaction_priority.dart';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:cw_core/wallet_addresses.dart';
|
||||
import 'package:cw_core/wallet_base.dart';
|
||||
import 'package:cw_core/wallet_info.dart';
|
||||
|
@ -200,7 +201,7 @@ abstract class EVMChainWalletBase
|
|||
} else {
|
||||
// MaxFeePerGas with gasPrice;
|
||||
maxFeePerGas = gasPrice;
|
||||
debugPrint('MaxFeePerGas with gasPrice: $maxFeePerGas');
|
||||
printV('MaxFeePerGas with gasPrice: $maxFeePerGas');
|
||||
}
|
||||
|
||||
final totalGasFee = estimatedGasUnits * maxFeePerGas;
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'dart:typed_data';
|
|||
|
||||
import 'package:cw_core/hardware/device_not_connected_exception.dart'
|
||||
as exception;
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:ledger_ethereum/ledger_ethereum.dart';
|
||||
import 'package:ledger_flutter_plus/ledger_flutter_plus.dart';
|
||||
import 'package:web3dart/crypto.dart';
|
||||
|
@ -96,7 +97,7 @@ class EvmLedgerCredentials extends CredentialsWithKnownAddress {
|
|||
await ethereumLedgerApp!.getAndProvideERC20TokenInformation(
|
||||
erc20ContractAddress: erc20ContractAddress, chainId: chainId);
|
||||
} catch (e) {
|
||||
print(e);
|
||||
printV(e);
|
||||
rethrow;
|
||||
// if (e.errorCode != -28672) rethrow;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue