Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Nov 27, 2024
1 parent b80cf94 commit 3347051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ describeSuite({
.viem()
.getTransactionReceipt({ hash: result2!.hash as `0x${string}` });
const expectedMinimumPovGas = 59000n;
// pov_gas = proof_size * GAS_LIMIT_POV_RATIO
// proof size reclaim seems indeterministic
expect(gasUsed).toBeGreaterThan(expectedMinimumPovGas);
expect(gasUsed).toBeLessThan(expectedMinimumPovGas + 2000n);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describeSuite({
// Storage growth ratio is 366
// storage_gas = 148 * 366 = 54168
// pov_gas = proof_size * GAS_LIMIT_POV_RATIO
expect(gasUsed).toMatchInlineSnapshot(`60768n`);
expect(gasUsed).toMatchInlineSnapshot(`58336n`);

const balAfter = await context.viem().getBalance({ address: FAITH_ADDRESS });
expect(balBefore - balAfter).to.equal(parseEther("5"));
Expand Down

0 comments on commit 3347051

Please sign in to comment.