Skip to content

Commit dabeff4

Browse files
author
Michael Yu
authored
Merge pull request #39 from me-rob/rwei/fix-rune-symbol-check
Rwei/fix rune symbol check
2 parents 83e30d1 + dfcbbdb commit dabeff4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ export function encodeRunestoneUnsafe(runestone: RunestoneSpec): {
143143

144144
if (
145145
etchingSpec.symbol &&
146-
(etchingSpec.symbol.length === 1 ||
147-
(etchingSpec.symbol.length === 2 && etchingSpec.symbol.codePointAt(0)! >= 0x10000))
146+
!(
147+
etchingSpec.symbol.length === 1 ||
148+
(etchingSpec.symbol.length === 2 && etchingSpec.symbol.codePointAt(0)! >= 0x10000)
149+
)
148150
) {
149151
throw Error('Symbol must be one code point');
150152
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magiceden-oss/runestone-lib",
3-
"version": "0.6.0-alpha",
3+
"version": "0.6.1-alpha",
44
"description": "",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)