@btc-vision/btc-runtime 1.0.19 → 1.0.20

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.19",
3
+ "version": "1.0.20",
4
4
  "description": "Bitcoin Smart Contract Runtime",
5
5
  "main": "btc/index.ts",
6
6
  "types": "btc/index.ts",
@@ -317,9 +317,11 @@ export class BytesWriter {
317
317
  bytes[i] = value.charCodeAt(i);
318
318
  }
319
319
 
320
- for (let i: u8 = u8(value.length); i < ADDRESS_BYTE_LENGTH; i++) {
321
- bytes[i] = 0;
322
- }
320
+ bytes[bytes.length] = 0;
321
+
322
+ //for (let i: u8 = u8(value.length); i < ADDRESS_BYTE_LENGTH; i++) {
323
+ // bytes[i] = 0;
324
+ //}
323
325
 
324
326
  return bytes;
325
327
  }