Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

208 add metadata read and write #215

Merged
merged 13 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update estimateUploadBatchesGas call to use prover and address
thomas-senechal committed Jan 13, 2025
commit 420456b6aeaad6ed195c505dc532d734cf19adae
8 changes: 6 additions & 2 deletions cli/src/tasks/estimations.ts
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@ import { ListrTask } from 'listr2'

import { Batch } from '../lib/batcher'
import { BatchStatus, UploadBatch } from '../lib/uploadManager'
import { formatBytes } from '../lib/utils/utils'
import { computeChunkCost } from '../lib/website/chunk'
import { estimateUploadBatchesGas } from '../lib/website/uploadChunk'

import { UploadCtx } from './tasks'
import { formatBytes } from '../lib/utils/utils'

/**
* Create a task to estimate the cost of each batch
@@ -82,7 +82,11 @@ export function estimateGasTask(): ListrTask {
gas: 0n,
}))

ctx.uploadBatches = await estimateUploadBatchesGas(ctx.sc, batches)
ctx.uploadBatches = await estimateUploadBatchesGas(
ctx.provider,
ctx.sc.address,
batches
)

const totalGas = ctx.uploadBatches.reduce(
(sum: bigint, batch: UploadBatch) => sum + batch.gas,

Unchanged files with check annotations Beta

}
function RootApp({ children }: RootAppProps) {

Check warning on line 13 in server/pages/src/utils/RootApp.tsx

GitHub Actions / lint-frontend

Fast refresh only works when a file only exports components. Move your component(s) to a separate file
return (
<StrictMode>
{children}