Skip to content

Commit

Permalink
remove un-necessary arg in prepareCost (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant authored Jan 22, 2025
1 parent a3066a6 commit a05b530
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions cli/src/lib/website/filesInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export async function sendFilesInits(
// TODO: Improve estimation
// - If a file is already stored, we don't need to send coins for its hash storage
export async function prepareCost(
_: SmartContract,
files: FileInit[],
filesToDelete: FileDelete[],
metadatas: Metadata[],
Expand Down Expand Up @@ -242,7 +241,7 @@ export async function filesInitCost(
filesToDeleteCost,
metadatasCost,
metadatasToDeleteCost,
} = await prepareCost(_sc, files, filesToDelete, metadatas, metadatasToDelete)
} = await prepareCost(files, filesToDelete, metadatas, metadatasToDelete)

return BigInt(
filePathListCost +
Expand Down
1 change: 0 additions & 1 deletion cli/src/tasks/prepareUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export function prepareUploadTask(): ListrTask {
metadatasCost,
metadatasToDeleteCost,
} = await prepareCost(
ctx.sc,
ctx.fileInits,
ctx.filesToDelete,
ctx.metadatas,
Expand Down

0 comments on commit a05b530

Please sign in to comment.