@ckb-ccc/spore 1.0.5 → 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 +13 -0
- package/dist/spore/advanced.js +1 -1
- package/dist.commonjs/spore/advanced.js +1 -1
- package/package.json +2 -2
- package/src/spore/advanced.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`7886e3d`](https://github.com/ckb-devrel/ccc/commit/7886e3d89e9ca8f3514a2044c6dd4e8ec6b49933)]:
|
|
14
|
+
- @ckb-ccc/core@1.2.2
|
|
15
|
+
|
|
3
16
|
## 1.0.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/spore/advanced.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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.
|
|
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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"axios": "^1.7.7",
|
|
47
|
-
"@ckb-ccc/core": "1.2.
|
|
47
|
+
"@ckb-ccc/core": "1.2.2"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json && copyfiles -u 2 misc/basedirs/**/* .",
|
package/src/spore/advanced.ts
CHANGED
|
@@ -30,7 +30,7 @@ export async function prepareCluster(
|
|
|
30
30
|
case "lockProxy": {
|
|
31
31
|
const lock = cluster.cellOutput.lock;
|
|
32
32
|
|
|
33
|
-
if (
|
|
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);
|