Skip to content

Commit

Permalink
Added logger to Sonic staking fork tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Jan 13, 2025
1 parent 01d4cc2 commit 0a89204
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/test/behaviour/sfcStakingStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const { oethUnits, advanceTime } = require("../helpers");
const { BigNumber } = ethers;
const { impersonateAndFund } = require("../../utils/signers");

const log = require("../../utils/logger")("test:sonic:staking");

/**
*
* @param {*} context a function that returns a fixture with the additional properties:
Expand Down Expand Up @@ -161,7 +163,6 @@ const shouldBehaveLikeASFCStakingStrategy = (context) => {
it("Should undelegate and withdraw", async () => {
const amount = oethUnits("15000");
await depositTokenAmount(amount);
console.log("defaultValidatorId", defaultValidatorId);
await undelegateTokenAmount(amount, defaultValidatorId);
});

Expand Down Expand Up @@ -484,7 +485,7 @@ const shouldBehaveLikeASFCStakingStrategy = (context) => {
addresses.nodeDriveAuth
);

console.log(`Preparing to seal ${epochsToAdvance} epoch(s) on Sonic`);
log(`Preparing to seal ${epochsToAdvance} epoch(s) on Sonic`);
for (let i = 0; i < epochsToAdvance; i++) {
// create array filled with 0s
const offlineTimes = Array.from(Array(validatorsLength).keys()).fill(
Expand Down

0 comments on commit 0a89204

Please sign in to comment.