diff --git a/src/rest/mod.rs b/src/rest/mod.rs index f3dac26..9d84ebc 100644 --- a/src/rest/mod.rs +++ b/src/rest/mod.rs @@ -199,8 +199,8 @@ impl> Rest { .layer(middleware::map_request(log_middleware)) // Enable CORS. .layer(cors) - // Cap the request body size at 512KiB. - .layer(DefaultBodyLimit::max(512 * 1024)) + // Cap the request body size at 2MiB to match snarkVM V14's 768 KiB binary transaction limit. + .layer(DefaultBodyLimit::max(2 * 768 * 1024)) .layer(governor_layer) }