File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
barretenberg/cpp/src/barretenberg/bbapi Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -341,10 +341,16 @@ CircuitWriteSolidityVerifier::Response CircuitWriteSolidityVerifier::execute(BB_
341341{
342342 using VK = UltraKeccakFlavor::VerificationKey;
343343 auto vk = std::make_shared<VK>(from_buffer<VK>(verification_key));
344+ // If in wasm, we dont include the optimized solidity verifier - due to its large bundle size
345+ #ifndef __wasm__
344346 std::string contract = settings.disable_zk
345347 ? (settings.optimized_solidity_verifier ? get_optimized_honk_solidity_verifier (vk)
346348 : get_honk_solidity_verifier (vk))
347349 : get_honk_zk_solidity_verifier (vk);
350+ #else
351+ std::string contract = settings.disable_zk ? get_honk_solidity_verifier (vk)
352+ : get_honk_zk_solidity_verifier (vk)
353+ #endif
348354
349355 return { std::move (contract) };
350356}
You can’t perform that action at this time.
0 commit comments