nervosnetwork / nervosnetwork/ckb-cli

[BUG] Signing transaction with CKB-CLI would fail if corresponding cell has `invalid code_hash`

Open
#679 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
63
Forks
40
PR merge metrics
No merged PRs in 30d

Description

this would break signing process on user custom script

Error: ckb-cli error: Input(no.1) invalid lock script code_hash: 0x1f8452818672fbb60f39c72e2d30dadd1814f322dfc21bf552784d83054f0247, hash_type: type, args.length: 65

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests; start at the CKB-CLI transaction-signing entry point and reproduce the failure with the shown invalid code_hash and a custom script. Trace the validation that rejects the lock script, then verify that signing completes successfully for the reported cell without weakening unrelated validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.