Skip to content

Commit

Permalink
chore(create snapshot cubit & upload plan): cleanup PE-3173
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Sep 22, 2023
1 parent 546900d commit ea9f1c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions lib/blocs/create_snapshot/create_snapshot_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {

Future<void> _prepareAndSignTx(
SnapshotEntity snapshotEntity,
// Uint8List data,
) async {
logger.i('About to prepare and sign snapshot transaction');

Expand All @@ -223,7 +222,6 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
));

await prepareTx(isArConnectProfile);
// await _pst.addCommunityTipToTx(_preparedDataItem); // Turbo should be the one setting the tip, right?
await signTx(isArConnectProfile);

if (_uploadMethod == UploadMethod.ar) {
Expand Down Expand Up @@ -560,8 +558,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
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,
Expand Down
1 change: 0 additions & 1 deletion lib/blocs/upload/models/upload_plan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class UploadPlan {
required Map<String, FileDataItemUploadHandle> fileDataItemUploadHandles,
required Map<String, FolderDataItemUploadHandle>
folderDataItemUploadHandles,
// required Map<String, UploadHandle> snapshotUploadHandles,
required TurboUploadService turboUploadService,
required int maxDataItemCount,
}) async {
Expand Down

0 comments on commit ea9f1c7

Please sign in to comment.