[INFO] cloning repository https://github.com/nitro-neal/cosmwasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nitro-neal/cosmwasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnitro-neal%2Fcosmwasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnitro-neal%2Fcosmwasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b09d3c746e41eb6f6b73648fa0c96f144486b54 [INFO] testing nitro-neal/cosmwasm against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnitro-neal%2Fcosmwasm" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nitro-neal/cosmwasm on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-15/source/.cargo/config [INFO] started tweaking git repo https://github.com/nitro-neal/cosmwasm [INFO] finished tweaking git repo https://github.com/nitro-neal/cosmwasm [INFO] tweaked toml for git repo https://github.com/nitro-neal/cosmwasm written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/nitro-neal/cosmwasm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4fd9e9d380d1b2fbfc8bfd5ca28884b33558b739066684141608e87e6fbd5edc [INFO] running `Command { std: "docker" "start" "-a" "4fd9e9d380d1b2fbfc8bfd5ca28884b33558b739066684141608e87e6fbd5edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4fd9e9d380d1b2fbfc8bfd5ca28884b33558b739066684141608e87e6fbd5edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fd9e9d380d1b2fbfc8bfd5ca28884b33558b739066684141608e87e6fbd5edc", kill_on_drop: false }` [INFO] [stdout] 4fd9e9d380d1b2fbfc8bfd5ca28884b33558b739066684141608e87e6fbd5edc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c01076fa08bc8608cbe1bb126161807a084d3ca719c614f8bdb6977fd69b27e [INFO] running `Command { std: "docker" "start" "-a" "0c01076fa08bc8608cbe1bb126161807a084d3ca719c614f8bdb6977fd69b27e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling libc v0.2.99 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling zeroize v1.4.1 [INFO] [stderr] Compiling const-oid v0.6.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling schemars v0.8.3 [INFO] [stderr] Compiling dyn-clone v1.0.4 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling der v0.4.1 [INFO] [stderr] Compiling uint v0.9.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling spki v0.4.0 [INFO] [stderr] Compiling pkcs8 v0.7.5 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling ff v0.10.0 [INFO] [stderr] Compiling crypto-bigint v0.2.2 [INFO] [stderr] Compiling signature v1.3.1 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling curve25519-dalek v3.2.0 [INFO] [stderr] Compiling group v0.10.0 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling elliptic-curve v0.10.5 [INFO] [stderr] Compiling ecdsa v0.12.3 [INFO] [stderr] Compiling k256 v0.9.6 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling schemars_derive v0.8.3 [INFO] [stderr] Compiling cosmwasm-derive v1.0.0-beta5 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling ed25519-zebra v2.2.0 [INFO] [stderr] Compiling serde-json-wasm v0.3.2 [INFO] [stderr] Compiling cosmwasm-crypto v1.0.0-beta5 [INFO] [stderr] Compiling cosmwasm-std v1.0.0-beta5 [INFO] [stderr] Compiling cw-utils v0.12.1 [INFO] [stderr] Compiling cw-storage-plus v0.12.1 [INFO] [stderr] Compiling cw20 v0.12.1 [INFO] [stderr] Compiling cw2 v0.12.1 [INFO] [stderr] Compiling lottery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Api`, `BankMsg`, `CanonicalAddr`, `Coin`, `CosmosMsg` [INFO] [stdout] --> src/contract.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | from_binary, to_binary, Addr, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Deps, [INFO] [stdout] | ^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20Contract`, `Cw20ExecuteMsg` [INFO] [stdout] --> src/contract.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use cw20::{Cw20Contract, Cw20ExecuteMsg, Cw20ReceiveMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pot_id` [INFO] [stdout] --> src/contract.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | pot_id: Uint128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pot_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cw20_addr` [INFO] [stdout] --> src/contract.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | cw20_addr: Addr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cw20_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut res = Response::new().add_attribute("collected", amountReceive); [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: variable `amountReceive` should have a snake case name [INFO] [stdout] --> src/contract.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | amountReceive: Uint128, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_receive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.54s [INFO] running `Command { std: "docker" "inspect" "0c01076fa08bc8608cbe1bb126161807a084d3ca719c614f8bdb6977fd69b27e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c01076fa08bc8608cbe1bb126161807a084d3ca719c614f8bdb6977fd69b27e", kill_on_drop: false }` [INFO] [stdout] 0c01076fa08bc8608cbe1bb126161807a084d3ca719c614f8bdb6977fd69b27e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 812e8fd6fd7f40a0b236c3c14ad13164704464debc1921faf42361a40ab58498 [INFO] running `Command { std: "docker" "start" "-a" "812e8fd6fd7f40a0b236c3c14ad13164704464debc1921faf42361a40ab58498", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.55 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling cosmwasm-schema v1.0.0-beta5 [INFO] [stderr] Compiling cosmwasm-storage v1.0.0-beta5 [INFO] [stderr] Compiling cw20-base v0.12.1 [INFO] [stdout] warning: unused imports: `Api`, `BankMsg`, `CanonicalAddr`, `Coin`, `CosmosMsg` [INFO] [stdout] --> src/contract.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | from_binary, to_binary, Addr, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Deps, [INFO] [stdout] | ^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20Contract`, `Cw20ExecuteMsg` [INFO] [stdout] --> src/contract.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use cw20::{Cw20Contract, Cw20ExecuteMsg, Cw20ReceiveMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pot_id` [INFO] [stdout] --> src/contract.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | pot_id: Uint128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pot_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cw20_addr` [INFO] [stdout] --> src/contract.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | cw20_addr: Addr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cw20_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut res = Response::new().add_attribute("collected", amountReceive); [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: variable `amountReceive` should have a snake case name [INFO] [stdout] --> src/contract.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | amountReceive: Uint128, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_receive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling cw-multi-test v0.12.1 [INFO] [stderr] Compiling lottery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Api`, `BankMsg`, `CanonicalAddr`, `Coin`, `CosmosMsg` [INFO] [stdout] --> src/contract.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | from_binary, to_binary, Addr, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Deps, [INFO] [stdout] | ^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cw20Contract`, `Cw20ExecuteMsg` [INFO] [stdout] --> src/contract.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use cw20::{Cw20Contract, Cw20ExecuteMsg, Cw20ReceiveMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CosmosMsg`, `WasmMsg` [INFO] [stdout] --> src/contract.rs:265:50 [INFO] [stdout] | [INFO] [stdout] 265 | use cosmwasm_std::{coins, from_binary, Addr, CosmosMsg, WasmMsg}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pot_id` [INFO] [stdout] --> src/contract.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | pot_id: Uint128, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pot_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cw20_addr` [INFO] [stdout] --> src/contract.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | cw20_addr: Addr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cw20_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut res = Response::new().add_attribute("collected", amountReceive); [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: variable `amountReceive` should have a snake case name [INFO] [stdout] --> src/contract.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | amountReceive: Uint128, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_receive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.76s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/lottery-c07f75aa9decdab6) [INFO] running `Command { std: "docker" "inspect" "812e8fd6fd7f40a0b236c3c14ad13164704464debc1921faf42361a40ab58498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "812e8fd6fd7f40a0b236c3c14ad13164704464debc1921faf42361a40ab58498", kill_on_drop: false }` [INFO] [stdout] 812e8fd6fd7f40a0b236c3c14ad13164704464debc1921faf42361a40ab58498 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b72bd8308cf05d52b3b1f5d3c8ab8510e2cf29f8aa09f46c242420e0fc6fefbd [INFO] running `Command { std: "docker" "start" "-a" "b72bd8308cf05d52b3b1f5d3c8ab8510e2cf29f8aa09f46c242420e0fc6fefbd", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Api`, `BankMsg`, `CanonicalAddr`, `Coin`, `CosmosMsg` [INFO] [stderr] --> src/contract.rs:4:35 [INFO] [stderr] | [INFO] [stderr] 4 | from_binary, to_binary, Addr, Api, BankMsg, Binary, CanonicalAddr, Coin, CosmosMsg, Deps, [INFO] [stderr] | ^^^ ^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Cw20Contract`, `Cw20ExecuteMsg` [INFO] [stderr] --> src/contract.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | use cw20::{Cw20Contract, Cw20ExecuteMsg, Cw20ReceiveMsg}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pot_id` [INFO] [stderr] --> src/contract.rs:89:5 [INFO] [stderr] | [INFO] [stderr] 89 | pot_id: Uint128, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pot_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cw20_addr` [INFO] [stderr] --> src/contract.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | cw20_addr: Addr, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cw20_addr` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/contract.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | let mut res = Response::new().add_attribute("collected", amountReceive); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `amountReceive` should have a snake case name [INFO] [stderr] --> src/contract.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | amountReceive: Uint128, [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_receive` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `lottery` (lib) generated 6 warnings [INFO] [stderr] warning: unused imports: `CosmosMsg`, `WasmMsg` [INFO] [stderr] --> src/contract.rs:265:50 [INFO] [stderr] | [INFO] [stderr] 265 | use cosmwasm_std::{coins, from_binary, Addr, CosmosMsg, WasmMsg}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lottery` (lib test) generated 7 warnings (6 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lottery-c07f75aa9decdab6) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test contract::tests::increment ... ok [INFO] [stdout] test contract::tests::reset ... ok [INFO] [stdout] test contract::tests::proper_initialization ... ok [INFO] [stdout] test contract::tests::test_receive_send ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests lottery [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b72bd8308cf05d52b3b1f5d3c8ab8510e2cf29f8aa09f46c242420e0fc6fefbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b72bd8308cf05d52b3b1f5d3c8ab8510e2cf29f8aa09f46c242420e0fc6fefbd", kill_on_drop: false }` [INFO] [stdout] b72bd8308cf05d52b3b1f5d3c8ab8510e2cf29f8aa09f46c242420e0fc6fefbd