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

Enable num-traits feature in starknet-types-core #612

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

kariy
Copy link
Contributor

@kariy kariy commented Jun 20, 2024

Before the migration to the new felt type, we used to be able to do felt.try_into<u128>() but the implementation has been removed since. The num-traits feature pretty much add implementations for the conversion to primitive uint types.

Would be nice to have it enabled directly from starknet-rs instead of having to add the starknet-types-core crate manually.

Copy link
Owner

@xJonathanLEI xJonathanLEI 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 71b1911 into xJonathanLEI:master Jun 20, 2024
26 checks passed
@kariy kariy deleted the enable-num-traits branch June 20, 2024 20:14
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