@ckb-lumos/toolkit
Advanced tools
Comparing version 0.0.0-canary-ed5dc56-20230901063035 to 0.0.0-ckb2023-22b17ec-20230926121058
@@ -105,2 +105,4 @@ "use strict"; | ||
return 2; | ||
case "data2": | ||
return 3; | ||
case 0: | ||
@@ -112,2 +114,4 @@ return value; | ||
return value; | ||
case 3: | ||
return value; | ||
default: | ||
@@ -114,0 +118,0 @@ throw new Error(`${debugPath}.hashType has invalid value: ${value}`); |
@@ -72,3 +72,3 @@ "use strict"; | ||
assertHexString(`${debugPath}.args`, script.args); | ||
if (script.hashType !== "data" && script.hashType !== "type" && script.hashType !== "data1") { | ||
if (script.hashType !== "data" && script.hashType !== "type" && script.hashType !== "data1" && script.hashType !== "data2") { | ||
throw new Error(`${debugPath}.hashType must be either data or type!`); | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "@ckb-lumos/toolkit", | ||
"version": "0.0.0-canary-ed5dc56-20230901063035", | ||
"version": "0.0.0-ckb2023-22b17ec-20230926121058", | ||
"description": "JavaScript toolkits used to build dapps for Nervos CKB", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -7,7 +7,7 @@ export type HexString = string; | ||
export type PackedDao = string; | ||
export type Address = string; | ||
export type HexadecimalRange = [Hexadecimal, Hexadecimal]; | ||
export interface Header { | ||
@@ -28,3 +28,3 @@ timestamp: HexNumber; | ||
export type HashType = "type" | "data" | "data1"; | ||
export type HashType = "type" | "data" | "data1" | "data2"; | ||
export interface Script { | ||
@@ -31,0 +31,0 @@ codeHash: Hash; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
155592
1528