juno
juno copied to clipboard
RPC fails with large contract class size
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