CKB Pulse

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_deps

A test changed in the same commit

It sits next to the fix. We did not run it.

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)

More about Developer tooling

All 35 in this topic

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.

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.