All lessons · Developer tooling · Start here · Glossary
Mock transactions must expand dep_group membersWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
In a ckb-debugger mock_info, list the dep_group cell with dep_type "dep_group" (data included) and also list each member out point as a separate cell dep with dep_type "code", with its data. Get the members by decoding the group cell's data as a molecule OutPoint vector: a u32 LE count, then per entry a 32-byte tx hash and a u32 LE index (36 bytes each), and check that the length is 4 + 36*count bytes.
Why it matters: ckb-debugger resolves a dep group only from the cells listed in mock_info, so if the member cells are missing it cannot load the scripts the group points to and the dry run fails.
Pattern
mockTxOf: for dep_group cell_deps, push the group cell and then push each member parsed from groupMembers(data) as dep_type 'code' into mock_info.cell_depsA test changed in the same commit
It sits next to the fix. We did not run it.
- toastmanAu/daowow:
apps/web/test/dry-run-claims.test.js
- Concepts
- Testing and devnet, Cell deps and script lookup, Data encoding (molecule, hex, bigints)
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-11-14
- Last changed
- 2026-11-14
- 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-11-14 · toastmanAu/daowow · more from this project
More about Developer tooling
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
- Derive devnet Spore and system script cell deps from a fresh OffCKB export
- Matching a Script code_hash to its code Cell by hash_type
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Mock transactions must expand dep_group members", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/mock-transactions-must-expand-dep-group-members, CC BY 4.0, last changed 2026-11-14.