Skip to content

Commit

Permalink
added conditions to fix failing scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
MSamiTariq committed Oct 22, 2024
1 parent d7d89fd commit 4210ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ After discussing with OpenZeppelin, DoDAO and OZ together believe that given the
},

async enacted(deploymentManager: DeploymentManager): Promise<boolean> {
return true;
return false;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
4 changes: 2 additions & 2 deletions scenario/RewardsScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ async function testScalingReward(properties: CometProperties, context: CometCont
);
await newRewards.connect(albert.signer).setRewardConfigWithMultiplier(comet.address, rewardTokenAddress, multiplier);
await context.sourceTokens(
100000, // maximum amount which can be sourced from transaction logs
world.base.network === 'scroll' ? 100000 : exp(1_000, rewardDecimals), // conditional check for scroll network: maximum amount which can be sourced from transaction logs on scroll
rewardTokenAddress, // CometAsset
newRewards.address, // Recipient's address
2751700 // Block number to start searching for transfer event
world.base.network === 'scroll' ? 2751700 : undefined // conditional check for scroll network: Block number to start searching for transfer event on scroll
);

await baseAsset.approve(albert, comet.address);
Expand Down

0 comments on commit 4210ea6

Please sign in to comment.