nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

long ckt address report error: 'parse address: "invalid checksum" #121

Closed wenyuanhust closed 1 year ago

wenyuanhust commented 1 year ago

Describe the bug For long ckt address, capsule returns with error: parse address: "invalid checksum

Screenshots Here is the command and error return

capsule deploy --address ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqtp5rgl5262g5m2w7r9n4wc0wywsgvgk9cwc2mu8 thread 'main' panicked at 'parse address: "invalid checksum"', /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ckb-capsule-0.10.0/src/bin/capsule.rs:378:48 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

If I change the long address to short address ckt1qyqxrgx3lg4553fk5auxt82as7ugaqsc3vtszxgefk. The error disappered.

Additional context Capsule 0.10.0 ckb-cli installed v1.4.0 (required v1.2.0)

blckngm commented 1 year ago

Proposal:

WDYT?

blckngm commented 1 year ago

This issue per se shouldn't be too hard to fix, I'll fix it for 0.10.