starknet 8.5.1 → 8.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.global.js +2 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [8.5.2](https://github.com/starknet-io/starknet.js/compare/v8.5.1...v8.5.2) (2025-08-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- preserve leading zeros for cairo bytes data ([5542a00](https://github.com/starknet-io/starknet.js/commit/5542a0015d0cc3cae186d63fe4258c9942ff07d2))
|
|
6
|
+
|
|
1
7
|
## [8.5.1](https://github.com/starknet-io/starknet.js/compare/v8.5.0...v8.5.1) (2025-08-27)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.global.js
CHANGED
|
@@ -5950,7 +5950,8 @@ ${indent}}` : "}";
|
|
|
5950
5950
|
return new TextDecoder().decode(this.data);
|
|
5951
5951
|
}
|
|
5952
5952
|
toHexString() {
|
|
5953
|
-
|
|
5953
|
+
const hexValue = this.data.length === 0 ? "0" : buf2hex(this.data);
|
|
5954
|
+
return addHexPrefix(hexValue);
|
|
5954
5955
|
}
|
|
5955
5956
|
static validate(data) {
|
|
5956
5957
|
const byteLength = _CairoBytes31.__processData(data).length;
|