Skip to content

starknet_getCompiledCasm#633

Merged
marioiordanov merged 10 commits intojson-rpc-v0.8.0from
json-rpc-get-casm
Oct 28, 2024
Merged

starknet_getCompiledCasm#633
marioiordanov merged 10 commits intojson-rpc-v0.8.0from
json-rpc-get-casm

Conversation

@marioiordanov
Copy link
Copy Markdown
Contributor

Usage related changes

Development related changes

Checklist:

  • Checked out the contribution guidelines
  • Applied formatting - ./scripts/format.sh
  • No linter errors - ./scripts/clippy_check.sh
  • No unused dependencies - ./scripts/check_unused_deps.sh
  • No spelling errors - ./scripts/check_spelling.sh
  • Performed code self-review
  • Rebased to the latest commit of the target branch (or merged it into my branch)
    • Once you make the PR reviewable, please avoid force-pushing
  • Updated the docs if needed - ./website/README.md
  • Linked the issues resolvable by this PR - linking info
  • Updated the tests if needed; all passing - execution info

@marioiordanov marioiordanov marked this pull request as ready for review October 25, 2024 10:02
let class_hash =
devnet.json_rpc_client.get_class_hash_at(block_id, account_address).await.unwrap();

get_compiled_casm(&devnet, block_id, class_hash).await.unwrap();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not assert the returned value? E.g. the request could be succeeding if we mistakenly return the Default implementation of CasmContractClass from the endpoint.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marioiordanov marioiordanov merged commit c61e183 into json-rpc-v0.8.0 Oct 28, 2024
@marioiordanov marioiordanov deleted the json-rpc-get-casm branch October 28, 2024 14:09
@FabijanC FabijanC mentioned this pull request Nov 29, 2024
7 tasks
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

Successfully merging this pull request may close these issues.

2 participants