Todas as lições · Developer tooling · Começa aqui · Glossário
Mock transactions must expand dep_group membersPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 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.
Porque importa: 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.
Padrão
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_depsUm teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
apps/web/test/dry-run-claims.test.js
- Conceitos
- Testing and devnet, Cell deps and script lookup, Data encoding (molecule, hex, bigints)
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-14
- Última mudança
- 2026-11-14
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-11-14 · toastmanAu/daowow · mais deste projeto
Mais sobre 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
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
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.