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 · 8 comments
Open

RPC fails with large contract class size #1785

Okm165 opened this issue Apr 2, 2024 · 8 comments
Labels
Bug Something isn't working or security issue Good first issue Good for newcomers no-stale

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

@derrix060 derrix060 added Bug Something isn't working or security issue no-stale Good first issue Good for newcomers labels Oct 23, 2024
@PedroRosalba
Copy link

I’d like to resolve this.

@nilaygit-10721
Copy link

Can I work on this, please?

@mimisavage
Copy link

I’d like to resolve this.

@PedroRosalba
Copy link

Can I jump on this task?

@aidenwong812
Copy link

Could I take a shot at this?

@josexx96
Copy link

Let me handle this issue!

@V15HNUPM
Copy link

Could I take a shot at this?

@zachwood222
Copy link

The issue likely arises because the size of your compiled_contract_class.json exceeds the maximum payload size that the Juno node can handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working or security issue Good first issue Good for newcomers no-stale
Projects
None yet
Development

No branches or pull requests

9 participants