Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC fails with large contract class size #1785

Open
Okm165 opened this issue Apr 2, 2024 · 0 comments
Open

RPC fails with large contract class size #1785

Okm165 opened this issue Apr 2, 2024 · 0 comments

Comments

@Okm165
Copy link

Okm165 commented Apr 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant