@smartledger/bsv 7.4.0 → 7.5.0

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.
@@ -29,13 +29,11 @@ describe('Ordinal-safe transfer (1-sat, SIGHASH_ALL)', function () {
29
29
  var bob = PrivateKey.fromRandom()
30
30
 
31
31
  before(function () {
32
- saved = { el: I.MAX_SCRIPT_ELEMENT_SIZE, num: I.MAXIMUM_ELEMENT_SIZE, ops: I.MAX_OPS_PER_SCRIPT }
32
+ saved = I.getLimits()
33
33
  SC.enableGenesis()
34
34
  })
35
35
  after(function () {
36
- I.MAX_SCRIPT_ELEMENT_SIZE = saved.el
37
- I.MAXIMUM_ELEMENT_SIZE = saved.num
38
- I.MAX_OPS_PER_SCRIPT = saved.ops
36
+ I.setLimits(saved)
39
37
  })
40
38
 
41
39
  it('transferOrdinal recreates the 1-sat token among funding outputs and verifies', function () {
@@ -32,13 +32,11 @@ describe('Configurable SIGHASH — SINGLE|ANYONECANPAY marketplace covenant', fu
32
32
  var flag = P.SIGHASH_SINGLE_ANYONECANPAY_FORKID // 0xc3
33
33
 
34
34
  before(function () {
35
- saved = { el: I.MAX_SCRIPT_ELEMENT_SIZE, num: I.MAXIMUM_ELEMENT_SIZE, ops: I.MAX_OPS_PER_SCRIPT }
35
+ saved = I.getLimits()
36
36
  SC.enableGenesis()
37
37
  })
38
38
  after(function () {
39
- I.MAX_SCRIPT_ELEMENT_SIZE = saved.el
40
- I.MAXIMUM_ELEMENT_SIZE = saved.num
41
- I.MAX_OPS_PER_SCRIPT = saved.ops
39
+ I.setLimits(saved)
42
40
  })
43
41
 
44
42
  // Lock: authenticate the pushed preimage under `flag`, assert the flag, succeed.
@@ -24,13 +24,11 @@ describe('SmartContract generalized token (pluggable auth + multi-output)', func
24
24
  var saved
25
25
 
26
26
  before(function () {
27
- saved = { el: I.MAX_SCRIPT_ELEMENT_SIZE, num: I.MAXIMUM_ELEMENT_SIZE, ops: I.MAX_OPS_PER_SCRIPT }
27
+ saved = I.getLimits()
28
28
  SC.enableGenesis()
29
29
  })
30
30
  after(function () {
31
- I.MAX_SCRIPT_ELEMENT_SIZE = saved.el
32
- I.MAXIMUM_ELEMENT_SIZE = saved.num
33
- I.MAX_OPS_PER_SCRIPT = saved.ops
31
+ I.setLimits(saved)
34
32
  })
35
33
 
36
34
  function spendOf (lock, sats, outputs) {
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  'use strict'
2
2
  // GENERATED by scripts/sync-version.js on `npm version` — do not edit.
3
- module.exports = '7.4.0'
3
+ module.exports = '7.5.0'