-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add ByteArray #436
Add ByteArray #436
Conversation
- Add `StarknetByteArray` - Move logic for encoding long string from `TypedData.prepareLongString()` to `StarknetByteArray` - Fix logic to properly handle short strings <31 - Do not prepend `Felt.ZERO` to `StarknetByteArray.data`
- Remains to be verified if it's correct one
This reverts commit 03363b3. It was confirmed that logic from the docs should be used: starknet-io/starknet.js#1003 (comment)
lib/src/main/kotlin/com/swmansion/starknet/data/types/StarknetByteArray.kt
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/StarknetByteArray.kt
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/StarknetByteArray.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be merged after resolving all comments
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #436 +/- ##
==========================================
+ Coverage 70.37% 70.56% +0.18%
==========================================
Files 73 75 +2
Lines 3153 3176 +23
Branches 309 313 +4
==========================================
+ Hits 2219 2241 +22
Misses 788 788
- Partials 146 147 +1 ☔ View full report in Codecov by Sentry. |
Describe your changes
Related to and is needed for #428
StarknetTypedData
that corresponds toByteArray
struct in CairoLinked issues
Closes
Breaking changes
References