Skip to content

Commit 97cc8a7

Browse files
committed
Remove getInstances as it is not used
1 parent e495ab3 commit 97cc8a7

1 file changed

Lines changed: 0 additions & 53 deletions

File tree

packages/permissionless-test/src/testWithRpc.ts

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -258,56 +258,3 @@ export const testWithRpc = test.extend<{
258258
})
259259

260260
export { createAutoBundleTransport }
261-
262-
// Keep getInstances export for backwards compatibility (standalone trio, used in docs references)
263-
export const getInstances = async ({
264-
anvilPort,
265-
altoPort,
266-
paymasterPort
267-
}: { anvilPort: number; altoPort: number; paymasterPort: number }) => {
268-
const anvilRpc = `http://localhost:${anvilPort}`
269-
const altoRpc = `http://localhost:${altoPort}`
270-
271-
const anvilInstance = forkUrl
272-
? anvil({
273-
chainId: foundry.id,
274-
port: anvilPort,
275-
hardfork: "Prague",
276-
forkUrl
277-
})
278-
: anvil({
279-
chainId: foundry.id,
280-
hardfork: "Prague",
281-
port: anvilPort
282-
})
283-
284-
const altoInstance = alto({
285-
entrypoints: [
286-
entryPoint06Address,
287-
entryPoint07Address,
288-
entryPoint08Address
289-
],
290-
rpcUrl: anvilRpc,
291-
executorPrivateKeys: [anvilPrivateKey],
292-
safeMode: false,
293-
port: altoPort,
294-
utilityPrivateKey: anvilPrivateKey
295-
})
296-
297-
const paymasterInstance = paymaster({
298-
anvilRpc,
299-
port: paymasterPort,
300-
altoRpc
301-
})
302-
303-
await anvilInstance.start()
304-
305-
if (!forkUrl) {
306-
await setupContracts(anvilRpc)
307-
}
308-
309-
await altoInstance.start()
310-
await paymasterInstance.start()
311-
312-
return [anvilInstance, altoInstance, paymasterInstance]
313-
}

0 commit comments

Comments
 (0)