NethermindEth / juno

Starknet client implementation.

Home Page:https://juno.nethermind.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPC fails with large contract class size

Okm165 opened this issue · comments

Issue

My compiled_contract_class.json generated with snfoundry fails when i try to declare it.
The size of file is 28 megabytes and when snfoundry tries to send it to juno it errors following msg:

command: declare
error: Unknown RPC error: data did not match any variant of untagged enum JsonRpcResponse: data did not match any variant of untagged enum JsonRpcResponse

But i expect to see:

command: declare
error: Contract class size is too large

The log-level trace is not yet available as mentioned here #1767
I cannot provide much more info then this (no important logs in debug log-level) but i am happy to help with reproduction of this issue.

There is no such issue when i send 10 megabytes contract class to juno it behaves as expected.

Do u know how to solve this issue? And why it happens?

Versions

snfoundry v0.20.1
scarb nightly-2024-03-16
nethermindeth/juno:v0.11.4