Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusrodri committed Nov 8, 2024
1 parent 7f02cb7 commit aa96dd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion test/suites/dev/moonbase/test-fees/test-length-fees2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ describeSuite({
const base_ethereum_fee = 21000n;
const modexp_min_cost = 200n * 20n; // see MIN_GAS_COST in frontier's modexp precompile
const entire_fee = non_zero_byte_fee + zero_byte_fee + base_ethereum_fee + modexp_min_cost;
console.log("ENTIRE FEE: ", entire_fee);
// Given that the pov is refunded, the gas used should be the minimum of the legacy gas
// and the pov gas.
const expected = BigInt(Math.min(Number(entire_fee), 3797 * GAS_LIMIT_POV_RATIO));
Expand Down
19 changes: 0 additions & 19 deletions test/suites/dev/moonbase/test-precompile/test-precompile-modexp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,7 @@ describeSuite({
.getTransactionReceipt({ hash: result!.hash as `0x${string}` });
expect(receipt.status).toBe("success");

console.log("GAS USED: ", receipt.gasUsed)
console.log("Num Non Zero Bytes: ", numNonZeroBytes)
console.log("Num Zero Bytes: ", numZeroBytes)

// WITH POV CHANGE:
/* 2024-11-01 09:32:27 ACTUAL PROOF SIZE: 1943
2024-11-01 09:32:27 POV GAS: 31088
2024-11-01 09:32:27 STORAGE GAS: 0
2024-11-01 09:32:27 USED GAS: 23820
2024-11-01 09:32:27 EFFECTIVE GAS: 31088 */

/* 2024-11-01 09:43:23 MEASURED PROOF SIZE BEFORE: 6514
2024-11-01 09:43:23 ACTUAL PROOF SIZE: 790
2024-11-01 09:43:23 POV GAS: 12640
2024-11-01 09:43:23 STORAGE GAS: 0
2024-11-01 09:43:23 USED GAS: 23820
2024-11-01 09:43:23 EFFECTIVE GAS: 23820 */

const modExpGas =
// 1088 372 21000
receipt.gasUsed - BigInt(numNonZeroBytes) * 16n - BigInt(numZeroBytes) * 4n - 21000n;
expect(modExpGas, "ModExp gas pricing mismatch").to.equal(expectedModExpGasCost);
},
Expand Down

0 comments on commit aa96dd4

Please sign in to comment.