Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: albertfolch-redeemeum <[email protected]>
  • Loading branch information
zajck and albertfolch-redeemeum authored Aug 28, 2023
1 parent 6986c49 commit cc586de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/util/estimate-twin-transfer-limits.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var log = console.log;
const log = console.log;

// Modify the console.log to capture the contract output
var contractLogs = [];
let contractLogs = [];
console.log = function () {
contractLogs.push(arguments[0]);
};
Expand Down Expand Up @@ -130,15 +130,13 @@ async function estimateTwinTransferLimits() {
...hre.config.mocha,
testFiles: ["./test/protocol/ExchangeHandlerTest.js"],
grep: "redeemVoucher\\(\\) with bundle",
// grep: "uld not decrease twin supplyAvailable if supply is unlimited",
reporter: "min",
};
hre.config.gasReporter.enabled = false;

log("Running tests...");
await hre.run("test");

// log(contractLogs);
// 3. Analyze the output
log("Tests complete. Analyzing logs...");
const [SINGLE_TWIN_RESERVED_GAS, MINIMAL_RESIDUAL_GAS] = analyzeLogs(contractLogs);
Expand Down

0 comments on commit cc586de

Please sign in to comment.