Skip to content

Commit 76209ac

Browse files
authored
Merge pull request #85 from NillionNetwork/chore/downgrade-node
chore: downgrade node to >18
2 parents 5c6372b + 7c008c4 commit 76209ac

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@nillion/nuc",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"license": "MIT",
55
"repository": "https://github.com/NillionNetwork/nuc-ts",
66
"engines": {
7-
"node": ">=23"
7+
"node": ">=18"
88
},
99
"type": "module",
1010
"exports": {

src/token.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export const NucTokenSchema = z
140140
command: token.cmd,
141141
body: tokenBody(token.args, token.pol),
142142
nonce: token.nonce,
143-
proofs: token.prf.map((prf) => hexToBytes(prf)),
143+
proofs: token.prf.map(
144+
(prf) => hexToBytes(prf) as Uint8Array<ArrayBuffer>,
145+
),
144146
notBefore: token.nbf
145147
? Temporal.Instant.fromEpochMilliseconds(token.nbf * 1000)
146148
: undefined,

0 commit comments

Comments
 (0)