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

RPC08 - Change offset to be integer #2393

Closed
wojciechos opened this issue Jan 21, 2025 · 1 comment
Closed

RPC08 - Change offset to be integer #2393

wojciechos opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels

Comments

@wojciechos
Copy link
Contributor

In the RPC v0.8 spec, the offset field was updated to be an integer instead of a num as hex - starkware-libs/starknet-specs@78ba4b2

Sample request - sepolia:

{
    "jsonrpc": "2.0",
    "method": "starknet_getCompiledCasm",
    "params": {
        "class_hash": "0x00eb46cb744cc47f6e6241e50724d595874187bfd7b63ef3998ee75b24c47152"
    },
    "id": 1
}

Expected response:

...
"CONSTRUCTOR": [
    {
        "offset": 4236, // should be an integer
        "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194",
        "builtins": [
            "range_check",
            "poseidon"
        ]
    }
],
...
@wojciechos
Copy link
Contributor Author

Close due to reverted spec: starkware-libs/starknet-specs#275

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

No branches or pull requests

3 participants