Skip to content

feat(katana): support raw chain id - #2276

Closed
greged93 wants to merge 2 commits into
dojoengine:mainfrom
greged93:test/chain-id
Closed

feat(katana): support raw chain id #2276
greged93 wants to merge 2 commits into
dojoengine:mainfrom
greged93:test/chain-id

Conversation

@greged93

@greged93 greged93 commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

Description

This PR is made in other to provide a failing example for issue #1595.

Commit on blockifier which implemented the feature: dojoengine/sequencer@07f473f

Related issue

#1595

Tests

  • Yes
  • No, because they aren't needed
  • No, because I need help

Added to documentation?

  • README.md
  • Dojo Book
  • No documentation needed

Checklist

  • I've formatted my code (scripts/prettier.sh, scripts/rust_fmt.sh, scripts/cairo_fmt.sh)
  • I've linted my code (scripts/clippy.sh, scripts/docs.sh)
  • I've commented my code
  • I've requested a review after addressing the comments

Summary by CodeRabbit

  • New Features

    • Introduced a new feature cairo-vm-test-utils for enhanced testing capabilities.
    • Added a new contract GetChainId to retrieve the chain ID within the StarkNet environment.
    • New test module for validating chain ID functionality.
  • Bug Fixes

    • Updated dependency versions for improved stability and performance.
  • Documentation

    • Added documentation for the read_compiled_class_artifact function to clarify its purpose.
  • Chores

    • Introduced new test data files for testing the GetChainId contract.

@codecov

codecov Bot commented Aug 8, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 70.27%. Comparing base (f1c5214) to head (df8464f).

Files Patch % Lines
...na/executor/src/implementation/blockifier/utils.rs 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2276      +/-   ##
==========================================
- Coverage   70.29%   70.27%   -0.02%     
==========================================
  Files         342      342              
  Lines       45094    45108      +14     
==========================================
+ Hits        31698    31699       +1     
- Misses      13396    13409      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glihm
glihm marked this pull request as draft August 8, 2024 19:29
@Eikix

Eikix commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

What is the status of this @glihm @greged93?

@kariy

kariy commented Oct 23, 2024

Copy link
Copy Markdown
Member

@Eikix im workin on this rn, i've identified why it still failing, just gonna add some more test now

@Eikix

Eikix commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

@Eikix im workin on this rn, i've identified why it still failing, just gonna add some more test now

<3333 okk thx

@kariy kariy changed the title test: add failing test on chain id conversion feat(katana): support raw chain id Oct 23, 2024
@kariy
kariy marked this pull request as ready for review October 23, 2024 15:16
@kariy

kariy commented Oct 23, 2024

Copy link
Copy Markdown
Member

@Eikix @greged93 ok this time it should definitely work as expected

coderabbitai[bot]

This comment was marked as spam.

@kariy

kariy commented Oct 23, 2024

Copy link
Copy Markdown
Member

@Eikix @greged93 i took the liberty to rebase it to v1.0.0-alpha.16 to ease the independent testing because there are some breaking changes in the genesis json file format after the alpha.16.

@kariy
kariy marked this pull request as draft October 23, 2024 15:31
coderabbitai[bot]

This comment was marked as resolved.

@glihm

glihm commented Feb 13, 2025

Copy link
Copy Markdown
Contributor

Will close since it's blockifier dependent, the issue will remain open. 👍

@glihm glihm closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants