Skip to content

Commit

Permalink
remove un-necessary arg in prepareCost
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe committed Jan 21, 2025
1 parent a3066a6 commit af48a67
Showing 1 changed file with 1 addition and 2 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

0 comments on commit af48a67

Please sign in to comment.