@btc-vision/btc-runtime 1.0.24 → 1.0.25

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.24",
3
+ "version": "1.0.25",
4
4
  "description": "Bitcoin Smart Contract Runtime",
5
5
  "main": "btc/index.ts",
6
6
  "types": "btc/index.ts",
@@ -61,7 +61,6 @@ export class BytesReader {
61
61
  const byte: u8 = this.readU8();
62
62
  if (zeroStop && byte === 0) {
63
63
  bytes = bytes.slice(0, i);
64
- //this.currentOffset += length - (i + 1);
65
64
  break;
66
65
  }
67
66
 
@@ -317,7 +317,7 @@ export class BytesWriter {
317
317
  bytes[i] = value.charCodeAt(i);
318
318
  }
319
319
 
320
- bytes[bytes.length] = 0;
320
+ bytes[value.length] = 0;
321
321
 
322
322
  return bytes;
323
323
  }