From ea9f1c7dc4ccc8b3d728069b935bb83e149732c6 Mon Sep 17 00:00:00 2001 From: Mati Date: Fri, 22 Sep 2023 12:15:12 -0300 Subject: [PATCH] chore(create snapshot cubit & upload plan): cleanup PE-3173 --- lib/blocs/create_snapshot/create_snapshot_cubit.dart | 5 +---- lib/blocs/upload/models/upload_plan.dart | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/blocs/create_snapshot/create_snapshot_cubit.dart b/lib/blocs/create_snapshot/create_snapshot_cubit.dart index 82b296277d..edb04a2148 100644 --- a/lib/blocs/create_snapshot/create_snapshot_cubit.dart +++ b/lib/blocs/create_snapshot/create_snapshot_cubit.dart @@ -212,7 +212,6 @@ class CreateSnapshotCubit extends Cubit { Future _prepareAndSignTx( SnapshotEntity snapshotEntity, - // Uint8List data, ) async { logger.i('About to prepare and sign snapshot transaction'); @@ -223,7 +222,6 @@ class CreateSnapshotCubit extends Cubit { )); await prepareTx(isArConnectProfile); - // await _pst.addCommunityTipToTx(_preparedDataItem); // Turbo should be the one setting the tip, right? await signTx(isArConnectProfile); if (_uploadMethod == UploadMethod.ar) { @@ -560,8 +558,7 @@ class CreateSnapshotCubit extends Cubit { final profile = _profileCubit.state as ProfileLoggedIn; final wallet = profile.wallet; - final addr = await wallet.getAddress(); - logger.d('Posting snapshot transaction with $addr'); + logger.d('Posting snapshot transaction for drive $_driveId'); await turboService.postDataItem( dataItem: dataItem, diff --git a/lib/blocs/upload/models/upload_plan.dart b/lib/blocs/upload/models/upload_plan.dart index 0e9f4aa877..cc2f08509b 100644 --- a/lib/blocs/upload/models/upload_plan.dart +++ b/lib/blocs/upload/models/upload_plan.dart @@ -28,7 +28,6 @@ class UploadPlan { required Map fileDataItemUploadHandles, required Map folderDataItemUploadHandles, - // required Map snapshotUploadHandles, required TurboUploadService turboUploadService, required int maxDataItemCount, }) async {