All lessons · Spore and DOB · Start here · Glossary
Set cobuild: true when injecting OffCKB devnet Spore scripts into createSporeWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
OffCKB 0.4.13's system scripts export for the devnet Spore V2 deployment has only codeHash, hashType and cellDeps, with no field for the protocol mode. When building a SporeScriptInfoLike from it for @ckb-ccc/spore createSpore({ scriptInfo }), set cobuild: true yourself, because the deployed binary uses cobuild semantics. Treat that flag as an assumption you pin, not something read from the export.
Why it matters: The OffCKB export carries no protocol mode, so a SporeScriptInfoLike copied straight from it leaves out the cobuild flag that the deployed Spore V2 binary's semantics call for.
cobuild: true needed for OffCKB devnet Spore scripts.
A test changed in the same commit
It sits next to the fix. We did not run it.
- Akane-CN/spark-verify:
tests/showcase-producer.test.ts
- Concepts
- Cell deps and script lookup, Testing and devnet
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-10-28
- Last changed
- 2026-10-28
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-10-28 · Akane-CN/spark-verify · more from this project
More about Spore and DOB
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Set cobuild: true when injecting OffCKB devnet Spore scripts into createSpore", CKB lessons, https://pulse.lusocryptolabs.com/learned/spore/set-cobuild-true-when-injecting-offckb-devnet-spore-scripts, CC BY 4.0, last changed 2026-10-28.