NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
401 stars 170 forks source link

RPC fails with large contract class size #1785

Open Okm165 opened 7 months ago

Okm165 commented 7 months ago

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 https://github.com/NethermindEth/juno/issues/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

PedroRosalba commented 1 week ago

I’d like to resolve this.

nilaygit-10721 commented 6 days ago

Can I work on this, please?