@btc-vision/btc-runtime 1.9.2 → 1.9.4
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/package.json +1 -1
- package/runtime/contracts/OP721.ts +11 -16
- package/runtime/env/BlockchainEnvironment.ts +491 -43
- package/runtime/math/abi.ts +1 -3
- package/runtime/types/SafeMath.ts +1047 -334
package/runtime/math/abi.ts
CHANGED
|
@@ -69,9 +69,7 @@ export function u256To30Bytes(value: u256): Uint8Array {
|
|
|
69
69
|
/**
|
|
70
70
|
* Optimized pointer encoding, see encodePointerUnknownLength for a more generic version.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
* ================================================================================================
|
|
74
|
-
* THIS FUNCTION WILL OVERWRITE THE FIRST 2 BYTES OF YOUR DATA!
|
|
72
|
+
* @security THIS FUNCTION WILL OVERWRITE THE FIRST 2 BYTES OF YOUR DATA!
|
|
75
73
|
*
|
|
76
74
|
* If you pass a 32-byte buffer, the first 2 bytes WILL BE DESTROYED and replaced with the
|
|
77
75
|
* uniqueIdentifier. This is BY DESIGN for pointer encoding.
|