Describe the bug
When I want to install the latest capsule with cargo install ckb-capsule, the following error occurred
Compiling ckb-testtool v0.10.2
error[E0277]: the trait bound `ckb_testtool::ckb_types::packed::Script: From<&ckb_sdk::Address>` is not satisfied
--> /home/dylan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ckb-capsule-0.10.3/src/wallet/wallet.rs:246:25
|
246 | (&self.address).into()
| ^^^^ the trait `From<&ckb_sdk::Address>` is not implemented for `ckb_testtool::ckb_types::packed::Script`
|
= help: the trait `From<ckb_testtool::ckb_jsonrpc_types::Script>` is implemented for `ckb_testtool::ckb_types::packed::Script`
= help: for that trait implementation, expected `ckb_testtool::ckb_jsonrpc_types::Script`, found `&ckb_sdk::Address`
= note: required for `&ckb_sdk::Address` to implement `Into<ckb_testtool::ckb_types::packed::Script>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `ckb-capsule` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ckb-capsule v0.10.3`, intermediate artifacts can be found at `/tmp/cargo-installbfVeNS`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Additional context
Please post the following informations:
capsule current version: v0.10.1
ckb-cli version: 1.4.0 (31c858e 2023-07-18)
the output of the command RUST_BACKTRACE=1 RUST_LOG=capsule=trace:
Compiling ckb-pow v0.111.0
Compiling ckb-chain-spec v0.112.1
Compiling ckb-mock-tx-types v0.112.1
Compiling ckb-resource v0.111.0
Compiling ckb-dao v0.112.1
Compiling ckb-chain-spec v0.111.0
Compiling ckb-mock-tx-types v0.111.0
Compiling ckb-verification v0.112.1
Compiling ckb-sdk v3.0.1
Compiling ckb-testtool v0.10.2
error[E0277]: the trait bound `ckb_testtool::ckb_types::packed::Script: From<&ckb_sdk::Address>` is not satisfied
--> /home/dylan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ckb-capsule-0.10.3/src/wallet/wallet.rs:246:25
|
246 | (&self.address).into()
| ^^^^ the trait `From<&ckb_sdk::Address>` is not implemented for `ckb_testtool::ckb_types::packed::Script`
|
= help: the trait `From<ckb_testtool::ckb_jsonrpc_types::Script>` is implemented for `ckb_testtool::ckb_types::packed::Script`
= help: for that trait implementation, expected `ckb_testtool::ckb_jsonrpc_types::Script`, found `&ckb_sdk::Address`
= note: required for `&ckb_sdk::Address` to implement `Into<ckb_testtool::ckb_types::packed::Script>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `ckb-capsule` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ckb-capsule v0.10.3`, intermediate artifacts can be found at `/tmp/cargo-installqEO3AO`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Describe the bug When I want to install the latest capsule with
cargo install ckb-capsule
, the following error occurredAdditional context Please post the following informations:
RUST_BACKTRACE=1 RUST_LOG=capsule=trace
: