Skip to content

Commit

Permalink
make forkUrl optional
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Jan 8, 2025
1 parent b50bb38 commit bae15ee
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/permissionless-test/src/testWithRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ export const getInstances = async ({
| string
| undefined

const anvilInstance = anvil({
chainId: foundry.id,
port: anvilPort,
forkUrl
})
const anvilInstance = forkUrl
? anvil({
chainId: foundry.id,
port: anvilPort,
forkUrl
})
: anvil({
chainId: foundry.id,
port: anvilPort
})

const altoInstance = alto({
entrypoints: [entryPoint06Address, entryPoint07Address],
Expand Down

0 comments on commit bae15ee

Please sign in to comment.