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

fix: Felt hex formatting options #68

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

xJonathanLEI
Copy link
Collaborator

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Bugfix

What is the current behavior?

Hex formatting of Felt ignores alternate and zero padding options.

What is the new behavior?

Hex formatting respects these options.

Does this introduce a breaking change?

Technically, yes. This fix adds a requirement of alloc to the implementation of LowerHex. In reality though this will likely not affect anyone.

Other information

This is blocking xJonathanLEI/starknet-rs#562.

@xJonathanLEI xJonathanLEI force-pushed the fix/felt_formatting branch from 8cf77a3 to 3068cbe Compare June 5, 2024 07:13
Copy link
Collaborator

@maciejka maciejka left a comment

Choose a reason for hiding this comment

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

LGTM

@xJonathanLEI xJonathanLEI merged commit c8be194 into starknet-io:main Jun 11, 2024
2 checks passed
@xJonathanLEI xJonathanLEI deleted the fix/felt_formatting branch June 11, 2024 16:08
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.

3 participants