[INFO] cloning repository https://github.com/gpBlockchain/ckb-contract-tests [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gpBlockchain/ckb-contract-tests" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgpBlockchain%2Fckb-contract-tests", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgpBlockchain%2Fckb-contract-tests'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd3c9b9990fc8294070ea0054a71864e9415d8a1 [INFO] checking gpBlockchain/ckb-contract-tests/bd3c9b9990fc8294070ea0054a71864e9415d8a1 against master#a5db378dc14a40dd1580c27fb8362156446382c3 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgpBlockchain%2Fckb-contract-tests" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gpBlockchain/ckb-contract-tests on toolchain a5db378dc14a40dd1580c27fb8362156446382c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gpBlockchain/ckb-contract-tests [INFO] finished tweaking git repo https://github.com/gpBlockchain/ckb-contract-tests [INFO] tweaked toml for git repo https://github.com/gpBlockchain/ckb-contract-tests written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gpBlockchain/ckb-contract-tests already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/XuJiandong/serde_molecule.git` [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] [stderr] Adding base16ct v0.2.0 [INFO] [stderr] Adding block-buffer v0.10.4 [INFO] [stderr] Adding cpufeatures v0.2.17 [INFO] [stderr] Adding crypto-common v0.1.6 [INFO] [stderr] Adding digest v0.10.7 [INFO] [stderr] Adding generic-array v0.14.7 [INFO] [stderr] Adding hmac v0.12.1 [INFO] [stderr] Adding musig2 v0.0.11 (available: v0.2.3) [INFO] [stderr] Adding secp v0.2.4 [INFO] [stderr] Adding sha2 v0.10.8 [INFO] [stderr] Adding subtle v2.6.1 [INFO] [stderr] Adding typenum v1.17.0 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ckb-testtool v0.10.2 [INFO] [stderr] Downloaded ckb-verification-traits v0.112.1 [INFO] [stderr] Downloaded ckb-error v0.112.1 [INFO] [stderr] Downloaded musig2 v0.0.11 [INFO] [stderr] Downloaded ckb-occupied-capacity-macros v0.112.1 [INFO] [stderr] Downloaded secp v0.2.4 [INFO] [stderr] Downloaded ckb-vm-definitions v0.24.6 [INFO] [stderr] Downloaded ckb-systemtime v0.112.1 [INFO] [stderr] Downloaded ckb-vm v0.24.6 [INFO] [stderr] Downloaded ckb-mock-tx-types v0.112.1 [INFO] [stderr] Downloaded buddy-alloc v0.5.1 [INFO] [stderr] Downloaded ckb-resource v0.112.1 [INFO] [stderr] Downloaded ckb-chain-spec v0.112.1 [INFO] [stderr] Downloaded ckb-gen-types v0.112.1 [INFO] [stderr] Downloaded ckb-types v0.112.1 [INFO] [stderr] Downloaded blake2b-ref v0.3.1 [INFO] [stderr] Downloaded ckb-std v0.15.3 [INFO] [stderr] Downloaded blake2b-rs v0.2.0 [INFO] [stderr] Downloaded golomb-coded-set v0.2.1 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded ckb-dao v0.112.1 [INFO] [stderr] Downloaded ckb-jsonrpc-types v0.112.1 [INFO] [stderr] Downloaded includedir v0.6.0 [INFO] [stderr] Downloaded includedir_codegen v0.6.0 [INFO] [stderr] Downloaded ckb-util v0.112.1 [INFO] [stderr] Downloaded ckb-logger v0.112.1 [INFO] [stderr] Downloaded ckb-fixed-hash v0.112.1 [INFO] [stderr] Downloaded ckb-hash v0.112.1 [INFO] [stderr] Downloaded bitcoin v0.31.2 [INFO] [stderr] Downloaded ckb-rational v0.112.1 [INFO] [stderr] Downloaded molecule v0.7.5 [INFO] [stderr] Downloaded ckb-occupied-capacity-core v0.112.1 [INFO] [stderr] Downloaded ckb-crypto v0.112.1 [INFO] [stderr] Downloaded ckb-dao-utils v0.112.1 [INFO] [stderr] Downloaded ckb-pow v0.112.1 [INFO] [stderr] Downloaded goblin v0.4.0 [INFO] [stderr] Downloaded ckb-traits v0.112.1 [INFO] [stderr] Downloaded ckb-channel v0.112.1 [INFO] [stderr] Downloaded ckb-constant v0.112.1 [INFO] [stderr] Downloaded ckb-fixed-hash-core v0.112.1 [INFO] [stderr] Downloaded ckb-fixed-hash-macros v0.112.1 [INFO] [stderr] Downloaded ckb-occupied-capacity v0.112.1 [INFO] [stderr] Downloaded ckb-verification v0.112.1 [INFO] [stderr] Downloaded ckb-script v0.112.1 [INFO] [stderr] Downloaded ckb-system-scripts v0.5.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58f581dd2b686b0552edfcc61d4cd0cb7d8f162655201c22bb919dedaaf33d32 [INFO] running `Command { std: "docker" "start" "-a" "58f581dd2b686b0552edfcc61d4cd0cb7d8f162655201c22bb919dedaaf33d32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58f581dd2b686b0552edfcc61d4cd0cb7d8f162655201c22bb919dedaaf33d32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58f581dd2b686b0552edfcc61d4cd0cb7d8f162655201c22bb919dedaaf33d32", kill_on_drop: false }` [INFO] [stdout] 58f581dd2b686b0552edfcc61d4cd0cb7d8f162655201c22bb919dedaaf33d32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a5db378dc14a40dd1580c27fb8362156446382c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 847fc5db27f1df80872e3c25c823cb47c86a1740baa21a880c026e826f84a835 [INFO] running `Command { std: "docker" "start" "-a" "847fc5db27f1df80872e3c25c823cb47c86a1740baa21a880c026e826f84a835", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling faster-hex v0.6.1 [INFO] [stderr] Compiling heapsize v0.4.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Checking blake2b-ref v0.3.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking golomb-coded-set v0.2.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking merkle-cbt v0.3.2 [INFO] [stderr] Checking ckb-merkle-mountain-range v0.5.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking ckb-constant v0.112.1 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking ckb-channel v0.112.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling includedir v0.6.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling bitcoin-internals v0.2.0 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Checking eaglesong v0.1.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking hex-conservative v0.1.2 [INFO] [stderr] Checking ckb-vm-definitions v0.24.6 [INFO] [stderr] Compiling ckb-script v0.112.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking ckb-logger v0.112.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking ckb-systemtime v0.112.1 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking ckb-always-success-script v0.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling bitcoin v0.31.2 [INFO] [stderr] Checking bech32 v0.10.0-beta [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking buddy-alloc v0.5.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Compiling blake2b-rs v0.2.0 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling secp256k1-sys v0.9.2 [INFO] [stderr] Compiling ckb-vm v0.24.6 [INFO] [stderr] Compiling ckb-std v0.15.3 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling ckb-hash v0.112.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling numext-constructor v0.1.6 [INFO] [stderr] Compiling scroll_derive v0.10.5 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking goblin v0.4.0 [INFO] [stderr] Checking goblin v0.2.3 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling includedir_codegen v0.6.0 [INFO] [stderr] Compiling ckb-system-scripts v0.5.4 [INFO] [stderr] Checking ckb-occupied-capacity-core v0.112.1 [INFO] [stderr] Checking numext-fixed-uint-core v0.1.6 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking ckb-fixed-hash-core v0.112.1 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_molecule v1.0.0 (https://github.com/XuJiandong/serde_molecule.git?rev=07f145d#07f145df) [INFO] [stderr] Checking ckb-util v0.112.1 [INFO] [stderr] Checking bitcoin_hashes v0.13.0 [INFO] [stderr] Checking molecule v0.7.5 [INFO] [stderr] Compiling ckb-occupied-capacity-macros v0.112.1 [INFO] [stderr] Compiling ckb-fixed-hash-macros v0.112.1 [INFO] [stderr] Checking ckb-occupied-capacity v0.112.1 [INFO] [stderr] Compiling ckb-error v0.112.1 [INFO] [stderr] Checking ckb-fixed-hash v0.112.1 [INFO] [stderr] Checking ckb-crypto v0.112.1 [INFO] [stderr] Checking ckb-verification-traits v0.112.1 [INFO] [stderr] Checking secp256k1 v0.28.2 [INFO] [stderr] Checking secp v0.2.4 [INFO] [stderr] Checking musig2 v0.0.11 [INFO] [stderr] Compiling numext-fixed-uint-hack v0.1.6 [INFO] [stderr] Checking numext-fixed-uint v0.1.6 [INFO] [stderr] Compiling ckb-gen-types v0.112.1 [INFO] [stderr] Compiling ckb-rational v0.112.1 [INFO] [stderr] Checking ckb-types v0.112.1 [INFO] [stderr] Checking ckb-jsonrpc-types v0.112.1 [INFO] [stderr] Checking ckb-traits v0.112.1 [INFO] [stderr] Checking ckb-pow v0.112.1 [INFO] [stderr] Checking ckb-dao-utils v0.112.1 [INFO] [stderr] Compiling ckb-resource v0.112.1 [INFO] [stderr] Checking ckb-chain-spec v0.112.1 [INFO] [stderr] Checking ckb-mock-tx-types v0.112.1 [INFO] [stderr] Checking ckb-dao v0.112.1 [INFO] [stderr] Checking ckb-verification v0.112.1 [INFO] [stderr] Checking ckb-testtool v0.10.2 [INFO] [stderr] Checking ckb-contract-test-fram v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ckb_std::ckb_types::packed::Script` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use ckb_std::ckb_types::packed::Script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_molecule::from_slice` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> src/tests/xudt.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use ckb_testtool::ckb_types::prelude::{Builder, Entity}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CommitmentHTCL1Cell`, `CommitmentHTCL1WithPreimageAndUDTCell`, `CommitmentPendinghtlc1WithPreimageWitness`, `CommitmentPendinghtlc1Witness`, and `CommitmentWitness` [INFO] [stdout] --> src/tests/commitment_lock.rs:11:92 [INFO] [stdout] | [INFO] [stdout] 11 | ...e, CommitmentHTCL1Cell, CommitmentHTCL1WithPreimageAndUDTCell, CommitmentHTCL2Cell, CommitmentHTCL2WithPriImageAndUDTCell, CommitmentMaxErrLenWitness, CommitmentMaxWitnessLenErrCell, CommitmentMinErrLenWitness, CommitmentMinWitnessLenErrCell, CommitmentPendinghtlc1WithPreimageWitness, CommitmentPendinghtlc1Witness, CommitmentPendinghtlc2WithPriImageWitness, CommitmentPendinghtlc2Witness, CommitmentWitness, C... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer` and `Serializer` [INFO] [stdout] --> src/cells/xudt_data.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `XUDTDataCell`, `XUDTData`, and `XUDTWitness` [INFO] [stdout] --> src/cells/funding_lock.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cells::xudt_data::{XUDTData, XUDTDataCell, XUDTWitness}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ckb_std` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use ckb_std::ckb_types::packed::Script; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `ckb_std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ckb_std`, use `cargo add ckb_std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ckb_std` [INFO] [stdout] --> src/tests/commitment_lock.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ckb_std::since::{EpochNumberWithFraction, Since}; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `ckb_std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ckb_std`, use `cargo add ckb_std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/funding_lock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_molecule::big_array_serde; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/funding_lock_err.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_molecule::big_array_serde; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/commitment_lock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_molecule::{dynvec_serde, big_array_serde, struct_serde}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_molecule::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/demo.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | impl_cell_methods!(Demo); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/demo.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | impl_cell_methods!(Demo); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_molecule::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/xudt_data.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | impl_cell_methods!(XUDTDataCell); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/xudt_data.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | impl_cell_methods!(XUDTDataCell); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_molecule::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/funding_lock.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | impl_cell_methods!(FundingCell); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/funding_lock.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | impl_cell_methods!(FundingCell); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_molecule::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/funding_lock_err.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | impl_cell_methods!(FundingErrCell); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/funding_lock_err.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | impl_cell_methods!(FundingErrCell); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_molecule::to_vec; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/commitment_lock.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 336 | impl_cell_methods!(CommitmentCellNoHtlcAndPreImage); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde_molecule` [INFO] [stdout] --> src/cells/macros.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_molecule::from_slice; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `serde_molecule` [INFO] [stdout] | [INFO] [stdout] ::: src/cells/commitment_lock.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 336 | impl_cell_methods!(CommitmentCellNoHtlcAndPreImage); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_molecule`, use `cargo add serde_molecule` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `impl_cell_methods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_testtool::ckb_types::core::TransactionBuilder` [INFO] [stdout] --> src/tests/xudt.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ckb_testtool::ckb_types::core::TransactionBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Builder` and `Entity` [INFO] [stdout] --> src/tests/xudt.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use ckb_testtool::ckb_types::prelude::{Builder, Entity}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `XUDTDataCell` and `XUDTData` [INFO] [stdout] --> src/tests/xudt.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::cells::xudt_data::{XUDTData, XUDTDataCell}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContractUtil` [INFO] [stdout] --> src/tests/xudt.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ContractUtil}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::ContextExt` [INFO] [stdout] --> src/tests/xudt.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::prelude::ContextExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_testtool::ckb_types::core::TransactionBuilder` [INFO] [stdout] --> src/tests/contract_util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ckb_testtool::ckb_types::core::TransactionBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_testtool::ckb_types::prelude::Builder` [INFO] [stdout] --> src/tests/contract_util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ckb_testtool::ckb_types::prelude::Builder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `XUDTDataCell` and `XUDTData` [INFO] [stdout] --> src/tests/contract_util.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::cells::xudt_data::{XUDTData, XUDTDataCell}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ContractUtil` [INFO] [stdout] --> src/tests/contract_util.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ContractUtil; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::ContextExt` [INFO] [stdout] --> src/tests/contract_util.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::prelude::ContextExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ContractUtil` [INFO] [stdout] --> src/tests/funding_lock.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ContractUtil; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ckb_hash::blake2b_256`, `core::TransactionBuilder`, and `prelude::*` [INFO] [stdout] --> src/tests/funding_lock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ckb_hash::blake2b_256, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | ckb_types::{core::TransactionBuilder, prelude::*}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CompactSignature`, `FirstRound`, `KeyAggContext`, `PartialSignature`, and `SecNonceSpices` [INFO] [stdout] --> src/tests/funding_lock.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | CompactSignature, FirstRound, KeyAggContext, PartialSignature, SecNonceSpices, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublicKey`, `RngCore`, `Secp256k1`, `SecretKey`, and `self` [INFO] [stdout] --> src/tests/funding_lock.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | rand::{self, RngCore}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 11 | PublicKey, Secp256k1, SecretKey, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/tests/funding_lock.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sha2::{Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cell_message::cell::MoleculeStructFlag` [INFO] [stdout] --> src/tests/funding_lock.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::cell_message::cell::MoleculeStructFlag; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FundingCell` and `FundingWitness` [INFO] [stdout] --> src/tests/funding_lock.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::cells::funding_lock::{FundingCell, FundingWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FundingErrCell` and `FundingErrWitness` [INFO] [stdout] --> src/tests/funding_lock.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::cells::funding_lock_err::{FundingErrCell, FundingErrWitness}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::ContextExt` [INFO] [stdout] --> src/tests/funding_lock.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::prelude::ContextExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ckb_crypto::secp::Generator`, `ckb_hash::blake2b_256`, `core::TransactionBuilder`, and `prelude::*` [INFO] [stdout] --> src/tests/commitment_lock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | ckb_crypto::secp::Generator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | ckb_hash::blake2b_256, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | ckb_types::{core::TransactionBuilder, prelude::*}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Builder` and `Entity` [INFO] [stdout] --> src/tests/commitment_lock.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | use ckb_testtool::ckb_types::prelude::{Builder, Entity}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Digest` and `Sha256` [INFO] [stdout] --> src/tests/commitment_lock.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use sha2::{Digest, Sha256}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cell_message::cell::MoleculeStructFlag` [INFO] [stdout] --> src/tests/commitment_lock.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::cell_message::cell::MoleculeStructFlag; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CommitmentArgErrCell`, `CommitmentCellNoHtlcAndPreImage`, `CommitmentHTCL1Cell`, `CommitmentHTCL1WithPreimageAndUDTCell`, `CommitmentHTCL2Cell`, `CommitmentHTCL2WithPriImageAndUDTCell`, `CommitmentMaxErrLenWitness`, `CommitmentMaxWitnessLenErrCell`, `CommitmentMinErrLenWitness`, `CommitmentMinWitnessLenErrCell`, `CommitmentPendinghtlc1WithPreimageWitness`, `CommitmentPendinghtlc1Witness`, `CommitmentPendinghtlc2WithPriImageWitness`, `CommitmentPendinghtlc2Witness`, `CommitmentWitnessNoHtlcAndPreImage`, `CommitmentWitness`, and `PendingHtlc` [INFO] [stdout] --> src/tests/commitment_lock.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | ...::{CommitmentArgErrCell, CommitmentCellNoHtlcAndPreImage, CommitmentHTCL1Cell, CommitmentHTCL1WithPreimageAndUDTCell, CommitmentHTCL2Cell, CommitmentHTCL2WithPriImageAndUDTCell, CommitmentMaxErrLenWitness, CommitmentMaxWitnessLenErrCell, CommitmentMinErrLenWitness, CommitmentMinWitnessLenErrCell, CommitmentPendinghtlc1WithPreimageWitness, CommitmentPendinghtlc1Witness, CommitmentPendinghtlc2WithPriImageWitness, CommitmentPendinghtlc2Witness, CommitmentWitness, CommitmentWitnessNoHtlcAndPreImage, PendingHtl... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ContractUtil` [INFO] [stdout] --> src/tests/commitment_lock.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{ContractUtil}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer` and `Serializer` [INFO] [stdout] --> src/cells/xudt_data.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `XUDTDataCell`, `XUDTData`, and `XUDTWitness` [INFO] [stdout] --> src/cells/funding_lock.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cells::xudt_data::{XUDTData, XUDTDataCell, XUDTWitness}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ckb_contract_test_fram` [INFO] [stdout] --> src/main.rs:428:2 [INFO] [stdout] | [INFO] [stdout] 428 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Builder` [INFO] [stdout] --> src/tests/xudt.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use ckb_testtool::ckb_types::prelude::{Builder, Entity}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_testtool::ckb_types::prelude::Builder` [INFO] [stdout] --> src/tests/contract_util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ckb_testtool::ckb_types::prelude::Builder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Digest` [INFO] [stdout] --> src/tests/funding_lock.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sha2::{Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Builder` [INFO] [stdout] --> src/tests/commitment_lock.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | use ckb_testtool::ckb_types::prelude::{Builder, Entity}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/tests/commitment_lock.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | ckb_types::{core::TransactionBuilder, prelude::*}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let mut commitment_cell = CommitmentCellNoHtlcAndPreImage::default(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/tests/commitment_lock.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | let cycles = match ct.context [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/tests/commitment_lock.rs:505:9 [INFO] [stdout] | [INFO] [stdout] 505 | let args = blake2b_256(&new_witness_script)[0..20].to_vec(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/tests/commitment_lock.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let args = blake2b_256(&new_witness_script)[0..20].to_vec(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:619:9 [INFO] [stdout] | [INFO] [stdout] 619 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:754:9 [INFO] [stdout] | [INFO] [stdout] 754 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:1094:9 [INFO] [stdout] | [INFO] [stdout] 1094 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `udt_contract` [INFO] [stdout] --> src/tests/commitment_lock.rs:1189:9 [INFO] [stdout] | [INFO] [stdout] 1189 | let udt_contract = ct.deploy_contract("simple_udt"); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_udt_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:1232:9 [INFO] [stdout] | [INFO] [stdout] 1232 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `udt_contract` [INFO] [stdout] --> src/tests/commitment_lock.rs:1326:9 [INFO] [stdout] | [INFO] [stdout] 1326 | let udt_contract = ct.deploy_contract("simple_udt"); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_udt_contract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/commitment_lock.rs:1370:9 [INFO] [stdout] | [INFO] [stdout] 1370 | let mut cc = CommitmentHTCL2WithPriImageAndUDTCell { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/tests/commitment_lock.rs:1492:9 [INFO] [stdout] | [INFO] [stdout] 1492 | let signature = revocation_key [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let mut cell_output = { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | .map(|(cell, data)| cell) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:378:26 [INFO] [stdout] | [INFO] [stdout] 378 | .map(|(cell, data)| cell) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ckb-contract-test-fram` (bin "ckb-contract-test-fram") due to 17 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let mut cell_output = { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:297:26 [INFO] [stdout] | [INFO] [stdout] 297 | .map(|(cell, data)| cell) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:378:26 [INFO] [stdout] | [INFO] [stdout] 378 | .map(|(cell, data)| cell) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ROOT` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | static ROOT: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `root` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn root() -> PathBuf { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_bin_files` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) fn find_bin_files(in_dir: &str, filename_prefix: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_bin_file` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) fn find_bin_file(in_dir: &str, filename: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_bin` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | pub(super) fn is_bin(entry: &DirEntry) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if_starts_with` is never used [INFO] [stdout] --> src/utilities/data_helper.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | pub(super) fn if_starts_with(prefix: &str) -> impl Fn(&DirEntry) -> bool + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_type_id` is never used [INFO] [stdout] --> src/utilities/type_id.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn calculate_type_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CYCLES` is never used [INFO] [stdout] --> src/tests/commitment_lock.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MAX_CYCLES: u64 = 10_000_000; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cells/demo.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Demo { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `witnessVec` should have a snake case name [INFO] [stdout] --> src/main.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | let mut witnessVec = tx_builder.data().witnesses().unpack(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `witness_vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `witnessVec` should have a snake case name [INFO] [stdout] --> src/main.rs:386:17 [INFO] [stdout] | [INFO] [stdout] 386 | let mut witnessVec = tx_builder.data().witnesses().unpack(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `witness_vec` [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "847fc5db27f1df80872e3c25c823cb47c86a1740baa21a880c026e826f84a835", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "847fc5db27f1df80872e3c25c823cb47c86a1740baa21a880c026e826f84a835", kill_on_drop: false }` [INFO] [stdout] 847fc5db27f1df80872e3c25c823cb47c86a1740baa21a880c026e826f84a835