Skip to content

Commit

Permalink
chore: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Jul 22, 2024
1 parent 9215831 commit f81c6ae
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import {
wrapSignature,
} from './toCoinbaseSmartAccount.js'

await anvilMainnet.restart()

const client = anvilMainnet.getClient({ account: true })
const bundlerClient = bundlerMainnet.getBundlerClient({ client })

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
import { pad } from '../../../utils/data/pad.js'
import { toSoladySmartAccount } from './toSoladySmartAccount.js'

await anvilMainnet.restart()

const client = anvilMainnet.getClient({ account: true })

let factoryAddress: Address
Expand Down
2 changes: 0 additions & 2 deletions src/account-abstraction/accounts/toSmartAccount.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { mine, writeContract } from '../../actions/index.js'
import { pad } from '../../utils/index.js'
import { toSoladySmartAccount } from './implementations/toSoladySmartAccount.js'

await anvilMainnet.restart()

const client = anvilMainnet.getClient({ account: true })

test('default', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const client = anvilMainnet.getClient({ account: true })
const bundlerClient = bundlerMainnet.getBundlerClient({ client })

describe('entryPointVersion: 0.7', async () => {
await anvilMainnet.restart()

const [account] = await getSmartAccounts_07()
const paymaster = await getVerifyingPaymaster_07()
const server = await createVerifyingPaymasterServer(client, { paymaster })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const client = anvilMainnet.getClient({ account: true })
const bundlerClient = bundlerMainnet.getBundlerClient({ client })

describe('entryPointVersion: 0.7', async () => {
await anvilMainnet.restart()

const [account] = await getSmartAccounts_07()
const paymaster = await getVerifyingPaymaster_07()
const server = await createVerifyingPaymasterServer(client, { paymaster })
Expand Down
4 changes: 0 additions & 4 deletions src/experimental/eip5792/actions/getCallsStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ const getClient = ({
}),
})

beforeEach(async () => {
await anvilMainnet.restart()
})

test('default', async () => {
const requests: unknown[] = []

Expand Down
4 changes: 0 additions & 4 deletions src/experimental/eip5792/actions/writeContracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ const getClient = ({
}),
})

beforeAll(async () => {
await anvilMainnet.restart()
})

test('default', async () => {
const requests: unknown[] = []

Expand Down
2 changes: 1 addition & 1 deletion src/utils/nonceManager.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from 'vitest'
import { beforeAll, beforeEach, expect, test } from 'vitest'
import { anvilMainnet, anvilOptimism } from '../../test/src/anvil.js'
import { accounts } from '../../test/src/constants.js'
import { privateKeyToAccount } from '../accounts/privateKeyToAccount.js'
Expand Down

0 comments on commit f81c6ae

Please sign in to comment.