Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Oct 2, 2023
1 parent 0a7c3c5 commit 352347f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/bundler/test/BundlerManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('#BundlerManager', () => {
minUnstakeDelay: 0
}

const repMgr = new ReputationManager(BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const repMgr = new ReputationManager(provider, BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const mempoolMgr = new MempoolManager(repMgr)
const validMgr = new ValidationManager(entryPoint, repMgr, config.unsafe)
bm = new BundleManager(entryPoint, mempoolMgr, validMgr, repMgr, config.beneficiary, parseEther(config.minBalance), config.maxBundleGas)
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('#BundlerManager', () => {
minStake: '0',
minUnstakeDelay: 0
}
const repMgr = new ReputationManager(BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const repMgr = new ReputationManager(provider, BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const mempoolMgr = new MempoolManager(repMgr)
const validMgr = new ValidationManager(_entryPoint, repMgr, config.unsafe)
const evMgr = new EventsManager(_entryPoint, mempoolMgr, repMgr)
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/test/DebugMethodHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('#DebugMethodHandler', () => {
minUnstakeDelay: 0
}

const repMgr = new ReputationManager(BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const repMgr = new ReputationManager(provider, BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const mempoolMgr = new MempoolManager(repMgr)
const validMgr = new ValidationManager(entryPoint, repMgr, config.unsafe)
const eventsManager = new EventsManager(entryPoint, mempoolMgr, repMgr)
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/test/UserOpMethodHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('UserOpMethodHandler', function () {
minUnstakeDelay: 0
}

const repMgr = new ReputationManager(BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
const repMgr = new ReputationManager(provider, BundlerReputationParams, parseEther(config.minStake), config.minUnstakeDelay)
mempoolMgr = new MempoolManager(repMgr)
const validMgr = new ValidationManager(entryPoint, repMgr, config.unsafe)
const evMgr = new EventsManager(entryPoint, mempoolMgr, repMgr)
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler/test/ValidateManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('#ValidationManager', () => {
await rulesFactory.create('')
await entryPoint.depositTo(rulesAccount.address, { value: parseEther('1') })

const reputationManager = new ReputationManager({
const reputationManager = new ReputationManager(provider, {
minInclusionDenominator: 1,
throttlingSlack: 1,
banSlack: 1
Expand Down

0 comments on commit 352347f

Please sign in to comment.