From 2e3224a16fcb76f264d1cc2d3f59c51f487b3fd7 Mon Sep 17 00:00:00 2001 From: Daniel Beal Date: Sun, 15 Sep 2024 16:02:16 +0900 Subject: [PATCH] add `--no-request-limit` to default anvil options some packages have gotten so big, they no longer fit in the standard request size for anvil. Thanksully, anvil now provides an escape hatch for this. Let's use it. --- packages/cli/src/rpc.ts | 2 ++ packages/cli/src/util/anvil.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/packages/cli/src/rpc.ts b/packages/cli/src/rpc.ts index 3377ff25c..ffd468914 100644 --- a/packages/cli/src/rpc.ts +++ b/packages/cli/src/rpc.ts @@ -57,6 +57,8 @@ export async function runRpc(anvilOptions: AnvilOptions, rpcOptions: RpcOptions anvilOptions.accounts = 1; } + anvilOptions.noRequestSizeLimit = true; + if (anvilOptions.forkUrl && rpcOptions.forkProvider) { throw new Error('Cannot set both an anvil forkUrl and a proxy provider connection'); } diff --git a/packages/cli/src/util/anvil.ts b/packages/cli/src/util/anvil.ts index 64c4df5ee..d873573e6 100644 --- a/packages/cli/src/util/anvil.ts +++ b/packages/cli/src/util/anvil.ts @@ -64,6 +64,10 @@ export type AnvilOptions = { * All storage slots are read entirely from the endpoint. */ noStorageCaching?: boolean | undefined; + /** + * Disables request size limit + */ + noRequestSizeLimit?: boolean | undefined; /** * Number of retry requests for spurious networks (timed out requests). *