@btc-vision/btc-runtime 1.0.17 → 1.0.18

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.17",
3
+ "version": "1.0.18",
4
4
  "description": "Bitcoin Smart Contract Runtime",
5
5
  "main": "btc/index.ts",
6
6
  "types": "btc/index.ts",
@@ -236,7 +236,8 @@ export class BlockchainEnvironment {
236
236
  public hasStorageAt(pointer: u16, subPointer: MemorySlotPointer): bool {
237
237
  // We mark zero as the default value for the storage, if something is 0, the storage slot get deleted or is non-existent
238
238
  const val: u256 = this.getStorageAt(pointer, subPointer, u256.Zero);
239
- return val != u256.Zero;
239
+
240
+ return u256.ne(val, u256.Zero);
240
241
  }
241
242
 
242
243
  public setStorageAt(