Skip to content

Commit

Permalink
chore: remove print statements and polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Nov 2, 2023
1 parent b92a342 commit 93023f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions packages/ardrive_uploader/lib/src/data_bundler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DataBundlerFactory {
case UploadType.d2n:
return DataTransactionBundler(
metadataGenerator,
UploadCostEstimateCalculatorForAR(
UploadCostEstimateCalculatorForAR(
arCostToUsd: ConvertArToUSD(),
arweaveService: arweaveService,
pstService: pstService,
Expand Down Expand Up @@ -669,7 +669,6 @@ Future<DataItemFile> _generateMetadataDataItemForFile({
throw l;
}, (fileDataItem) {
metadata as ARFSFileUploadMetadata;
// print('File data item id: ${fileDataItem.id}');
metadata.setDataTxId = fileDataItem.id;
});

Expand Down Expand Up @@ -704,7 +703,6 @@ Future<DataItemFile> _generateMetadataDataItemForFile({

metadata.entityMetadataTags
.add(Tag(EntityTag.cipherIv, encodeBytesToBase64(metadataCipherIv!)));
// print('Encrypting metadata data item with cipher $metadataCipher');

metadata.entityMetadataTags.add(Tag(EntityTag.cipher, metadataCipher));
} else {
Expand Down
2 changes: 0 additions & 2 deletions packages/ardrive_uploader/lib/src/upload_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ class Worker {
wallet: wallet,
driveKey: task.encryptionKey,
onStartBundleCreation: () {
// print('Creating bundle');
task = task.copyWith(
status: UploadStatus.creatingBundle,
);
Expand All @@ -491,7 +490,6 @@ class Worker {
);
},
onStartMetadataCreation: () {
// print('Creating metadata');
task = task.copyWith(
status: UploadStatus.creatingMetadata,
);
Expand Down
1 change: 0 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<script defer src="js/arconnect.js"></script>
<script defer src="js/is_document_focused.js"></script>
<script defer src="js/StreamSaver.min.js"></script>
<script defer src="https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js"></script>

<!-- Plausible Web Analytics -->
<script defer data-domain="app.ardrive.io" src="https://plausible.io/js/plausible.js"></script>
Expand Down

0 comments on commit 93023f1

Please sign in to comment.