-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: accept numbers for
NUM_AS_HEX
(#491)
While the official specs indicate that `NUM_AS_HEX` must be strings, some Starknet libraries expect numbers to be acceptable in certain cases. Adding support for this technically breaks the specs but it's acceptable since it's only on the deserialization side. Also changes the `NumAsHex` implementation to remove the unnecessary allocation for `String`. This makes deserialization slightly more efficient.
- Loading branch information
1 parent
1d2eb07
commit e8e9f6c
Showing
1 changed file
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters