software-mansion / starknet.swift

Starknet SDK for Swift language
MIT License
24 stars 15 forks source link

Fix typed data serialization #207

Closed franciszekjob closed 3 months ago

franciszekjob commented 3 months ago

Describe your changes

Fix encoding of u128, i128 and timestamp

Before: When typed data was decoded to StarknetTypedData and then encoded again to JSON, u128, i128 and timestamp were encoded as hex values Now: They are encoded in line with SNIP-12

Linked issues

Closes #204, #205, #206

Breaking changes