Skip to content

Commit

Permalink
remove SC param from file init costs
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe committed Jan 22, 2025
1 parent a05b530 commit 4a3b9a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cli/src/lib/website/filesInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ export async function prepareCost(
}

export async function filesInitCost(
_sc: SmartContract,
files: FileInit[],
filesToDelete: FileDelete[],
metadatas: Metadata[],
Expand Down Expand Up @@ -271,7 +270,6 @@ async function estimatePrepareGas(
metadatasToDelete: Metadata[]
): Promise<bigint> {
const coins = await filesInitCost(
sc,
files,
filesToDelete,
metadatas,
Expand Down Expand Up @@ -329,7 +327,6 @@ class Batch {

batchCost(sc: SmartContract): Promise<bigint> {

Check failure on line 328 in cli/src/lib/website/filesInit.ts

View workflow job for this annotation

GitHub Actions / lint-cli

'sc' is defined but never used
return filesInitCost(
sc,
this.fileInits,
this.fileDeletes,
this.metadatas,
Expand Down

0 comments on commit 4a3b9a0

Please sign in to comment.