@ckb-ccc/udt 0.1.20 → 0.1.22

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ckb-ccc/udt
2
2
 
3
+ ## 0.1.22
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [[`6a3be47`](https://github.com/ckb-devrel/ccc/commit/6a3be477b40870dc40d491ce51e667f61f70965e)]:
7
+ - @ckb-ccc/core@1.12.3
8
+ - @ckb-ccc/ssri@0.2.20
9
+
10
+ ## 0.1.21
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`b371b07`](https://github.com/ckb-devrel/ccc/commit/b371b07e67f295129defc36190741ab4d783dd96)]:
14
+ - @ckb-ccc/core@1.12.2
15
+ - @ckb-ccc/ssri@0.2.19
16
+
3
17
  ## 0.1.20
4
18
  ### Patch Changes
5
19
 
package/dist/udt/index.js CHANGED
@@ -192,7 +192,7 @@ export class Udt extends ssri.Trait {
192
192
  mint.addOutput({
193
193
  lock: to,
194
194
  type: this.script,
195
- }, ccc.numLeToBytes(amount));
195
+ }, ccc.numLeToBytes(amount, 16));
196
196
  }
197
197
  resTx = ssri.ExecutorResponse.new(mint);
198
198
  }
@@ -195,7 +195,7 @@ class Udt extends ssri_1.ssri.Trait {
195
195
  mint.addOutput({
196
196
  lock: to,
197
197
  type: this.script,
198
- }, core_1.ccc.numLeToBytes(amount));
198
+ }, core_1.ccc.numLeToBytes(amount, 16));
199
199
  }
200
200
  resTx = ssri_1.ssri.ExecutorResponse.new(mint);
201
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/udt",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "UDT",
5
5
  "author": "Alive24 <xct24@live.com>",
6
6
  "license": "MIT",
@@ -39,8 +39,8 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@ckb-ccc/core": "1.12.1",
43
- "@ckb-ccc/ssri": "0.2.18"
42
+ "@ckb-ccc/core": "1.12.3",
43
+ "@ckb-ccc/ssri": "0.2.20"
44
44
  },
45
45
  "scripts": {
46
46
  "test": "jest",
package/src/udt/index.ts CHANGED
@@ -262,7 +262,7 @@ export class Udt extends ssri.Trait {
262
262
  lock: to,
263
263
  type: this.script,
264
264
  },
265
- ccc.numLeToBytes(amount),
265
+ ccc.numLeToBytes(amount, 16),
266
266
  );
267
267
  }
268
268
  resTx = ssri.ExecutorResponse.new(mint);