Skip to content

Commit

Permalink
Updated logs
Browse files Browse the repository at this point in the history
  • Loading branch information
i5hi committed May 28, 2024
1 parent 7426b50 commit f2dad75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions lib/_pkg/boltz/swap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import 'package:bb_mobile/_model/wallet.dart';
import 'package:bb_mobile/_pkg/boltz/types.dart';
import 'package:bb_mobile/_pkg/consts/configs.dart';
import 'package:bb_mobile/_pkg/error.dart';
import 'package:bb_mobile/_pkg/logger.dart';
import 'package:bb_mobile/_pkg/storage/secure_storage.dart';
import 'package:bb_mobile/_pkg/storage/storage.dart';
import 'package:bb_mobile/_pkg/wallet/repository/network.dart';
import 'package:bb_mobile/locator.dart';
import 'package:boltz_dart/boltz_dart.dart';
import 'package:convert/convert.dart';
import 'package:dio/dio.dart';
Expand Down Expand Up @@ -508,8 +506,8 @@ class SwapBoltz {
absFee: swapTx.claimFees!,
tryCooperate: tryCooperate,
);
locator<Logger>()
.log('------${swapTx.id}-----\n$signedHex------signed-claim-----');
// locator<Logger>()
// .log('------${swapTx.id}-----\n$signedHex------signed-claim-----');

try {
final txid = await lwk.Wallet.broadcastTx(
Expand Down Expand Up @@ -604,8 +602,8 @@ class SwapBoltz {
absFee: refundFeesEstimate,
tryCooperate: tryCooperate,
);
locator<Logger>()
.log('------${swapTx.id}-----\n$signedHex------signed-refund-----');
// locator<Logger>()
// .log('------${swapTx.id}-----\n$signedHex------signed-refund-----');
final (blockchain, err) = _networkRepository.liquidUrl;
if (err != null) throw err;

Expand Down
2 changes: 1 addition & 1 deletion lib/_pkg/wallet/network.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WalletNetwork implements IWalletNetwork {
}) async {
try {
Uri.parse(url);
_logger.log('Connecting to $url');
// _logger.log('Connecting to $url');

if (stopGap != null) {
final (blockchain, errCreate) = await _bdkNetwork.createBlockChain(
Expand Down
2 changes: 1 addition & 1 deletion lib/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import 'package:flutter_animate/flutter_animate.dart';
import 'package:get_it/get_it.dart';
import 'package:go_router/go_router.dart';

const bbVersion = '0.2.1-3';
const bbVersion = '0.2.1-4';

GetIt locator = GetIt.instance;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: bb_mobile
description: Bull Bitcoin Mobile Wallet
publish_to: 'none'
version: 0.2.1-3+17
version: 0.2.1-4+17

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down

0 comments on commit f2dad75

Please sign in to comment.