From 4761a7362a4c8a519c0b6af4e42de637a2c54205 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Mon, 10 Jun 2024 11:04:25 -0400 Subject: [PATCH] Revert "Fixing bench tests" This reverts commit 436be02870f10c793f74cfb336f70c18a12ca7ae. --- test/MainModule.bench.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/MainModule.bench.ts b/test/MainModule.bench.ts index 199e5ee..bf19246 100644 --- a/test/MainModule.bench.ts +++ b/test/MainModule.bench.ts @@ -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 () => {