@neuraiproject/neurai-scripts 0.6.1 → 0.6.2
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/dist/NeuraiScripts.global.js +6 -1
- package/dist/NeuraiScripts.global.js.map +1 -1
- package/dist/browser.js +6 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1976,8 +1976,13 @@ function assertExpiration(expiration) {
|
|
|
1976
1976
|
function appendExpirationGate(b, expiration) {
|
|
1977
1977
|
if (!expiration)
|
|
1978
1978
|
return;
|
|
1979
|
+
// Selectors 1 (HEIGHT) and 2 (MTP) must be pushed as OP_1 / OP_2 so the
|
|
1980
|
+
// resulting script is consensus-minimal (MINIMALDATA). `pushBytes(0x01 N)`
|
|
1981
|
+
// would emit `01 0N`, which the consensus rule rejects for N in 1..16.
|
|
1982
|
+
// Parser side stays lenient (`readPushUint8` accepts both forms) so old
|
|
1983
|
+
// covenants in the raw `01 0N` form keep round-tripping.
|
|
1979
1984
|
b.pushInt(expiration.value)
|
|
1980
|
-
.
|
|
1985
|
+
.pushInt(selectorForMode(expiration.mode))
|
|
1981
1986
|
.op(OP_CHAINCONTEXT, OP_GREATERTHAN, OP_VERIFY);
|
|
1982
1987
|
}
|
|
1983
1988
|
function readOptionalExpirationGate(c, nextOpcodeWithoutGate, label) {
|