Skip to content

Commit

Permalink
Revert "Fixing bench tests"
Browse files Browse the repository at this point in the history
This reverts commit 436be02.
  • Loading branch information
corbanbrook committed Jun 10, 2024
1 parent 436be02 commit 4761a73
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/MainModule.bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,20 @@ contract('MainModule', () => {
;(this as any).timeout(0)

it('Deploy a wallet', async () => {
const results: ethers.BigNumberish[] = []

for (let i = 0; i < runs; i++) {
await SequenceWallet.basicWallet(context).deploy()
const tx = await SequenceWallet.basicWallet(context).deploy()
const receipt = await tx?.wait()

if (!receipt) {
throw new Error('No receipt')
}

results.push(receipt.gasUsed)
}

report('deploy wallets', results)
})

it('Relay 1/1 transaction', async () => {
Expand Down

0 comments on commit 4761a73

Please sign in to comment.