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

feat: init calldata for dojo contract #1964

Merged
merged 17 commits into from
May 29, 2024
Merged

feat: init calldata for dojo contract #1964

merged 17 commits into from
May 29, 2024

Conversation

lambda-0x
Copy link
Collaborator

@lambda-0x lambda-0x commented May 15, 2024

Description

Add support for specifying custom constructor
fix: #1888

Related issue

Tests

  • Yes

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

@glihm glihm added dojo-core cairo core tasks sozo labels May 15, 2024
Copy link

codecov bot commented May 26, 2024

Codecov Report

Attention: Patch coverage is 97.87986% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 68.27%. Comparing base (35ca974) to head (8daccdc).
Report is 6 commits behind head on main.

Files Patch % Lines
crates/dojo-world/src/migration/world.rs 85.36% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1964      +/-   ##
==========================================
+ Coverage   67.96%   68.27%   +0.30%     
==========================================
  Files         318      318              
  Lines       37093    37352     +259     
==========================================
+ Hits        25212    25503     +291     
+ Misses      11881    11849      -32     

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

@lambda-0x
Copy link
Collaborator Author

(merge with main)

@lambda-0x lambda-0x marked this pull request as ready for review May 26, 2024 12:11
Copy link
Collaborator

@glihm glihm left a comment

Choose a reason for hiding this comment

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

Great work @lambda-0x, some feedback let me know if you have any question.

This PR + the auto-gen of empty overlays files option, it will be very great! (the option should only generate the file if it does not already exist)

crates/dojo-core/src/world.cairo Outdated Show resolved Hide resolved
crates/dojo-core/src/base_test.cairo Show resolved Hide resolved
crates/dojo-core/src/world.cairo Outdated Show resolved Hide resolved
crates/dojo-core/src/world.cairo Outdated Show resolved Hide resolved
crates/dojo-core/src/world.cairo Show resolved Hide resolved
crates/dojo-lang/src/contract.rs Outdated Show resolved Hide resolved
crates/dojo-core/src/world.cairo Outdated Show resolved Hide resolved
crates/dojo-lang/src/plugin.rs Outdated Show resolved Hide resolved
crates/dojo-lang/src/plugin_test.rs Outdated Show resolved Hide resolved
crates/dojo-world/src/manifest/types.rs Outdated Show resolved Hide resolved
crates/dojo-world/src/migration/mod.rs Outdated Show resolved Hide resolved
crates/dojo-world/src/migration/world.rs Outdated Show resolved Hide resolved
crates/sozo/ops/src/migration/migrate.rs Outdated Show resolved Hide resolved
@glihm glihm changed the title feat: constructor calldata feat: init calldata for dojo contract May 29, 2024
@glihm glihm merged commit 3aae095 into main May 29, 2024
13 checks passed
@glihm glihm deleted the sozo-constructor branch May 29, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dojo-core cairo core tasks sozo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sozo] support constructor arguments during deployment
2 participants