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: starknet-types-macros adding felt!() #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rkdud007
Copy link

@rkdud007 rkdud007 commented Sep 9, 2024

adding starknet-types-macros crate to add felt!() macro which pretty useful in other libraries e.g starknet-rs ( https://github.com/xJonathanLEI/starknet-rs/blob/660a7323169bbcdaea71b4f0e939631e3aaabd45/starknet-macros/src/lib.rs#L60)

also added example of how to use this macro on test functions on starknet-types-rpc

Pull Request type

new feature

What is the new behavior?

can use felt!("123") or felt!("0xabc") like this instead have raw method of Felt type.

Does this introduce a breaking change?

no

Other information

@rkdud007 rkdud007 requested a review from pefontana as a code owner September 9, 2024 00:51
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