@ckb-ccc/spore 1.0.6 → 1.0.7

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,11 @@
1
1
  # @ckb-ccc/spore
2
2
 
3
+ ## 1.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123](https://github.com/ckb-devrel/ccc/pull/123) [`7e64eea`](https://github.com/ckb-devrel/ccc/commit/7e64eeac15268725358f74b531a3013c9189979c) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: spore cluster lock proxy
8
+
3
9
  ## 1.0.6
4
10
 
5
11
  ### Patch Changes
@@ -15,7 +15,7 @@ export async function prepareCluster(signer, tx, data, clusterMode, scriptInfoHa
15
15
  switch (clusterMode) {
16
16
  case "lockProxy": {
17
17
  const lock = cluster.cellOutput.lock;
18
- if (!(await tx.findInputIndexByLock(lock, signer.client))) {
18
+ if (await tx.findInputIndexByLock(lock, signer.client) === undefined) {
19
19
  // note: We can only search proxy of signer, if any custom logic is in need, developer should get
20
20
  // the proxy filled in transaction before invoking `createSpore`
21
21
  const proxy = await searchOneCellBySigner(signer);
@@ -18,7 +18,7 @@ async function prepareCluster(signer, tx, data, clusterMode, scriptInfoHash) {
18
18
  switch (clusterMode) {
19
19
  case "lockProxy": {
20
20
  const lock = cluster.cellOutput.lock;
21
- if (!(await tx.findInputIndexByLock(lock, signer.client))) {
21
+ if (await tx.findInputIndexByLock(lock, signer.client) === undefined) {
22
22
  // note: We can only search proxy of signer, if any custom logic is in need, developer should get
23
23
  // the proxy filled in transaction before invoking `createSpore`
24
24
  const proxy = await (0, index_js_2.searchOneCellBySigner)(signer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/spore",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "CCC - CKBer's Codebase. Common Chains Connector's support for Spore protocol",
5
5
  "author": "ashuralyk <ashuralyk@live.com>",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@ export async function prepareCluster(
30
30
  case "lockProxy": {
31
31
  const lock = cluster.cellOutput.lock;
32
32
 
33
- if (!(await tx.findInputIndexByLock(lock, signer.client))) {
33
+ if (await tx.findInputIndexByLock(lock, signer.client) === undefined) {
34
34
  // note: We can only search proxy of signer, if any custom logic is in need, developer should get
35
35
  // the proxy filled in transaction before invoking `createSpore`
36
36
  const proxy = await searchOneCellBySigner(signer);