Commit fb506f4
authored
fix(create): ensure CKB binary and devnet config before generating scripts (#419)
* fix(create): add imports for binary installation
* fix(create): ensure CKB binary and devnet config before generating scripts
Fix issue #396 where offckb create fails if user hasn't run offckb node first.
Changes:
- Add imports for installCKBBinary, initChainIfNeeded, readSettings
- Call installCKBBinary to download CKB binary if not exists
- Call initChainIfNeeded to initialize devnet config if not exists
- Both calls happen before genSystemScriptsJsonFile to ensure dependencies are ready
This makes offckb create self-sufficient and doesn't require prior offckb node execution.
* chore: add changeset for issue #396 fix1 parent fe80fc7 commit fb506f4
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
0 commit comments