@btc-vision/btc-runtime 1.0.26 → 1.0.27

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btc-vision/btc-runtime",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Bitcoin Smart Contract Runtime",
5
5
  "main": "btc/index.ts",
6
6
  "types": "btc/index.ts",
@@ -318,7 +318,7 @@ export class BytesWriter {
318
318
  bytes[i] = value.charCodeAt(i);
319
319
  }
320
320
 
321
- if (value.length < ADDRESS_BYTE_LENGTH) {
321
+ if (value.length < i32(ADDRESS_BYTE_LENGTH)) {
322
322
  bytes[value.length] = 0;
323
323
  }
324
324