CKB Pulse

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.

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)

More about Spore and DOB

All 2 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.