Skip to content

Commit

Permalink
chore: improved log in FHEGas test
Browse files Browse the repository at this point in the history
  • Loading branch information
jatZama committed Dec 10, 2024
1 parent ed9af08 commit 720697b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/confidentialERC20/ConfidentialERC20.FHEGas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ describe("ConfidentialERC20:FHEGas", function () {
if (network.name === "hardhat") {
// `getFHEGasFromTxReceipt` function only works in mocked mode but gives same exact FHEGas consumed than on the real fhEVM
const FHEGasConsumedTransferFrom = getFHEGasFromTxReceipt(t3);
console.log("FHEGas Consumed during transfer", FHEGasConsumedTransferFrom);
console.log("FHEGas Consumed during transferFrom", FHEGasConsumedTransferFrom);
}
// contrarily to FHEGas, native gas in mocked mode slightly differs from the real gas consumption on fhevm (underestimated by ~20%)
console.log("Native Gas Consumed during transfer", t3.gasUsed);
console.log("Native Gas Consumed during transferFrom", t3.gasUsed);
});
});

0 comments on commit 720697b

Please sign in to comment.