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

[Dojo] add dojo-core interfaces into their file + snake_case contracts #588

Merged
merged 4 commits into from
Jul 1, 2023

Conversation

glihm
Copy link
Collaborator

@glihm glihm commented Jun 30, 2023

To follow your comment @tarrencev I've moved the interfaces into their respective file.

Also, as I saw your snake_casing initiative, I have done it too.
By the way, the snake_casing of the world and executor contracts has an impact on the dojo-lang and dojo-world.

Modifications were made accordingly + refacto into constants to allow future changes.

Let me know if it's wasn't planned, and I'll remove this snake_casing. 👍

The snake_casing of the world and executor contracts
has an impact on the dojo-lang and dojo-world.
Modifications were made accordingly + refacto into
constants to allow future changes
calldata: vec![cairo_short_string_to_felt(
// because the name returns by the `name` method of
// a system contract is without the 'System' suffix
system.name.strip_suffix("System").unwrap_or(&system.name),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is this one supposed to be lower case too?

@tarrencev tarrencev merged commit 7e5e358 into dojoengine:main Jul 1, 2023
@tarrencev
Copy link
Contributor

awesome thank you!

@glihm glihm deleted the followup-578 branch July 1, 2023 01:26
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