[INFO] cloning repository https://github.com/LucaWilliams4831/cw20-sale [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LucaWilliams4831/cw20-sale" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucaWilliams4831%2Fcw20-sale", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucaWilliams4831%2Fcw20-sale'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa00e3228cd0e71bfff15863d421c2ed998adcfa [INFO] checking LucaWilliams4831/cw20-sale/aa00e3228cd0e71bfff15863d421c2ed998adcfa against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucaWilliams4831%2Fcw20-sale" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LucaWilliams4831/cw20-sale on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/LucaWilliams4831/cw20-sale [INFO] finished tweaking git repo https://github.com/LucaWilliams4831/cw20-sale [INFO] tweaked toml for git repo https://github.com/LucaWilliams4831/cw20-sale written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LucaWilliams4831/cw20-sale 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cw20-base v0.11.1 [INFO] [stderr] Downloaded cw20 v0.11.1 [INFO] [stderr] Downloaded cosmwasm-derive v1.0.0-beta4 [INFO] [stderr] Downloaded cw2 v0.11.1 [INFO] [stderr] Downloaded cosmwasm-crypto v1.0.0-beta4 [INFO] [stderr] Downloaded cosmwasm-storage v1.0.0-beta4 [INFO] [stderr] Downloaded cw-multi-test v0.11.1 [INFO] [stderr] Downloaded cw-storage-plus v0.11.1 [INFO] [stderr] Downloaded cosmwasm-std v1.0.0-beta4 [INFO] [stderr] Downloaded curve25519-dalek v3.1.0 [INFO] [stderr] Downloaded cosmwasm-schema v1.0.0-beta4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb2dd988898257d8397aef08679062691c080411977eb373b190c42a547d9212 [INFO] running `Command { std: "docker" "start" "-a" "bb2dd988898257d8397aef08679062691c080411977eb373b190c42a547d9212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb2dd988898257d8397aef08679062691c080411977eb373b190c42a547d9212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb2dd988898257d8397aef08679062691c080411977eb373b190c42a547d9212", kill_on_drop: false }` [INFO] [stdout] bb2dd988898257d8397aef08679062691c080411977eb373b190c42a547d9212 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac5b52cbbf23c2b4996187aa1a02bde79c6e1e01460b0ece332d17bea6995cda [INFO] running `Command { std: "docker" "start" "-a" "ac5b52cbbf23c2b4996187aa1a02bde79c6e1e01460b0ece332d17bea6995cda", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking const-oid v0.6.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking cpufeatures v0.1.4 [INFO] [stderr] Checking der v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling schemars v0.8.3 [INFO] [stderr] Checking dyn-clone v1.0.4 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking spki v0.4.1 [INFO] [stderr] Checking pkcs8 v0.7.6 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking ff v0.10.1 [INFO] [stderr] Checking group v0.10.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking crypto-bigint v0.2.11 [INFO] [stderr] Checking signature v1.3.2 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking sha2 v0.9.5 [INFO] [stderr] Checking curve25519-dalek v3.1.0 [INFO] [stderr] Checking elliptic-curve v0.10.6 [INFO] [stderr] Checking ecdsa v0.12.4 [INFO] [stderr] Checking k256 v0.9.6 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling schemars_derive v0.8.3 [INFO] [stderr] Compiling cosmwasm-derive v1.0.0-beta4 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking prost v0.9.0 [INFO] [stderr] Checking ed25519-zebra v2.2.0 [INFO] [stderr] Checking serde-json-wasm v0.3.2 [INFO] [stderr] Checking cosmwasm-crypto v1.0.0-beta4 [INFO] [stderr] Checking cosmwasm-std v1.0.0-beta4 [INFO] [stderr] Checking cosmwasm-schema v1.0.0-beta4 [INFO] [stderr] Checking cw-utils v0.11.1 [INFO] [stderr] Checking cw-storage-plus v0.11.1 [INFO] [stderr] Checking cosmwasm-storage v1.0.0-beta4 [INFO] [stderr] Checking cw20 v0.11.1 [INFO] [stderr] Checking cw2 v0.11.1 [INFO] [stderr] Checking cw-multi-test v0.11.1 [INFO] [stderr] Checking cw20-base v0.11.1 [INFO] [stderr] Checking sale v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/contract.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `denom` [INFO] [stdout] --> src/contract.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | denom: String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_denom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/contract.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | price: Uint128, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut amount = match funds.amount.checked_mul(Uint128::from(1000000u128)).unwrap().checked_div(state.price.amount) { [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `cw_multi_test::SimpleBank` [INFO] [stdout] --> src/integration_test.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | use cw_multi_test::{App, Contract, ContractWrapper, SimpleBank}; [INFO] [stdout] | ^^^^^^^^^^ no `SimpleBank` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `attr` in this scope [INFO] [stdout] --> src/contract.rs:383:55 [INFO] [stdout] | [INFO] [stdout] 383 | assert_eq!(_res.attributes.first().unwrap(), &attr("amount", 2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 264 + use cosmwasm_std::attr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `attr` in this scope [INFO] [stdout] --> src/contract.rs:392:55 [INFO] [stdout] | [INFO] [stdout] 392 | assert_eq!(_res.attributes.first().unwrap(), &attr("amount", 2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 264 + use cosmwasm_std::attr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `attr` in this scope [INFO] [stdout] --> src/contract.rs:444:55 [INFO] [stdout] | [INFO] [stdout] 444 | assert_eq!(_res.attributes.first().unwrap(), &attr("amount", 2)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 264 + use cosmwasm_std::attr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:270:24 [INFO] [stdout] | [INFO] [stdout] 270 | let mut deps = mock_dependencies(&[]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --- unexpected argument of type `&[_; 0]` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 270 - let mut deps = mock_dependencies(&[]); [INFO] [stdout] 270 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:291:24 [INFO] [stdout] | [INFO] [stdout] 291 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 291 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 291 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:331:24 [INFO] [stdout] | [INFO] [stdout] 331 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 331 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 331 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:333:19 [INFO] [stdout] | [INFO] [stdout] 333 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | amount: Uint128(10), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 343 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 343 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:352:20 [INFO] [stdout] | [INFO] [stdout] 352 | assert_eq!(Uint128(10), value.balance); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 352 | assert_eq!(Uint128::new(_), value.balance); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 352 | assert_eq!(Uint128::zero(), value.balance); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:357:24 [INFO] [stdout] | [INFO] [stdout] 357 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 357 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 357 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:360:19 [INFO] [stdout] | [INFO] [stdout] 360 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:370:21 [INFO] [stdout] | [INFO] [stdout] 370 | amount: Uint128(4), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 370 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 370 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:378:20 [INFO] [stdout] | [INFO] [stdout] 378 | price: Uint128(7), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 378 | price: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 378 | price: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:406:24 [INFO] [stdout] | [INFO] [stdout] 406 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 406 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 406 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:410:19 [INFO] [stdout] | [INFO] [stdout] 410 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:420:21 [INFO] [stdout] | [INFO] [stdout] 420 | amount: Uint128(4), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 420 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 420 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | amount: Uint128(7), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 430 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 430 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | amount: Uint128(7), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 434 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 434 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:438:25 [INFO] [stdout] | [INFO] [stdout] 438 | amount: Uint128(7), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 438 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 438 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:449:24 [INFO] [stdout] | [INFO] [stdout] 449 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 449 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 449 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:451:19 [INFO] [stdout] | [INFO] [stdout] 451 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:461:21 [INFO] [stdout] | [INFO] [stdout] 461 | amount: Uint128(10), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 461 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 461 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/contract.rs:470:20 [INFO] [stdout] | [INFO] [stdout] 470 | assert_eq!(Uint128(10), value.balance); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 470 | assert_eq!(Uint128::new(_), value.balance); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 470 | assert_eq!(Uint128::zero(), value.balance); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/contract.rs:484:24 [INFO] [stdout] | [INFO] [stdout] 484 | let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ------------------ unexpected argument of type `&std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/mock.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn mock_dependencies() -> OwnedDeps { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 484 - let mut deps = mock_dependencies(&coins(2, "token")); [INFO] [stdout] 484 + let mut deps = mock_dependencies(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/contract.rs:486:19 [INFO] [stdout] | [INFO] [stdout] 486 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `FnOnce(&mut Router, WasmKeeper, cw_multi_test::module::FailingModule, cw_multi_test::module::FailingModule>, &dyn Api, &mut dyn Storage)` closure, found `MockApi` [INFO] [stdout] --> src/integration_test.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | App::new(api, env.block, bank, || Box::new(MockStorage::new())) [INFO] [stdout] | -------- ^^^ expected an `FnOnce(&mut Router, WasmKeeper, cw_multi_test::module::FailingModule, cw_multi_test::module::FailingModule>, &dyn Api, &mut dyn Storage)` closure, found `MockApi` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/sale-c7ac711714133d58.long-type-6801764688173992289.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = help: the trait `for<'a, 'b, 'c> FnOnce(&'a mut Router, WasmKeeper, cw_multi_test::module::FailingModule, cw_multi_test::module::FailingModule>, &'b (dyn Api + 'b), &'c mut (dyn Storage + 'c))` is not implemented for `MockApi`, which is required by `for<'a, 'b, 'c> Box: FnOnce(&'a mut Router, WasmKeeper, cw_multi_test::module::FailingModule, cw_multi_test::module::FailingModule>, &'b (dyn Api + 'b), &'c mut (dyn Storage + 'c))` [INFO] [stdout] = note: required for `Box` to implement `for<'a, 'b, 'c> FnOnce(&'a mut Router, WasmKeeper, cw_multi_test::module::FailingModule, cw_multi_test::module::FailingModule>, &'b (dyn Api + 'b), &'c mut (dyn Storage + 'c))` [INFO] [stdout] note: required by a bound in `App::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/app.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(init_fn: F) -> Self [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] 71 | where [INFO] [stdout] 72 | F: FnOnce( [INFO] [stdout] | ____________^ [INFO] [stdout] 73 | | &mut Router< [INFO] [stdout] 74 | | BankKeeper, [INFO] [stdout] 75 | | FailingModule, [INFO] [stdout] ... | [INFO] [stdout] 81 | | &mut dyn Storage, [INFO] [stdout] 82 | | ), [INFO] [stdout] | |_________^ required by this bound in `App::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 4 arguments were supplied [INFO] [stdout] --> src/integration_test.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | App::new(api, env.block, bank, || Box::new(MockStorage::new())) [INFO] [stdout] | ^^^^^^^^ --------- ---- ------------------------------- unexpected argument #4 of type `{closure@src/integration_test.rs:17:36: 17:38}` [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #3 [INFO] [stdout] | unexpected argument #2 of type `BlockInfo` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/app.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(init_fn: F) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 17 - App::new(api, env.block, bank, || Box::new(MockStorage::new())) [INFO] [stdout] 17 + App::new(api) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | amount: Uint128(5000), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 55 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 55 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `marketing` in initializer of `cw20_base::msg::InstantiateMsg` [INFO] [stdout] --> src/integration_test.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | let msg = cw20_base::msg::InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `marketing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `instantiate_contract` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 59 | let cash_addr = router [INFO] [stdout] | _____________________- [INFO] [stdout] 60 | | .instantiate_contract(cw20_id, owner.clone(), &msg, &[], "CASH") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn instantiate_contract>( [INFO] [stdout] | -------------------- the method is available for `App` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `migrate_contract` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | / fn migrate_contract( [INFO] [stdout] 124 | | &mut self, [INFO] [stdout] 125 | | sender: Addr, [INFO] [stdout] 126 | | contract_addr: Addr, [INFO] [stdout] 127 | | msg: &T, [INFO] [stdout] 128 | | new_code_id: u64, [INFO] [stdout] 129 | | ) -> AnyResult { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: trait `Executor` which provides `instantiate_contract` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use cw_multi_test::Executor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing fields `maxamount` and `owner` in initializer of `msg::InstantiateMsg` [INFO] [stdout] --> src/integration_test.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 66 | let msg = InstantiateMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^ missing `maxamount` and `owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `instantiate_contract` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 71 | let sale_addr = router [INFO] [stdout] | _____________________- [INFO] [stdout] 72 | | .instantiate_contract(sale_id, owner.clone(), &msg, &[], "Sale") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn instantiate_contract>( [INFO] [stdout] | -------------------- the method is available for `App` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `migrate_contract` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | / fn migrate_contract( [INFO] [stdout] 124 | | &mut self, [INFO] [stdout] 125 | | sender: Addr, [INFO] [stdout] 126 | | contract_addr: Addr, [INFO] [stdout] 127 | | msg: &T, [INFO] [stdout] 128 | | new_code_id: u64, [INFO] [stdout] 129 | | ) -> AnyResult { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: trait `Executor` which provides `instantiate_contract` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use cw_multi_test::Executor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:82:31 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(owner_balance, Uint128(5000)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(owner_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 82 | assert_eq!(owner_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(sale_balance, Uint128(0)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(sale_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 84 | assert_eq!(sale_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/integration_test.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | msg: Some(to_binary(&ReceiveMsg::Receive {}).unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Binary`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `cosmwasm_std::Binary` [INFO] [stdout] found enum `std::option::Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_contract` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 92 | let res = router [INFO] [stdout] | _______________- [INFO] [stdout] 93 | | .execute_contract(owner.clone(), cash_addr.clone(), &send_msg, &[]) [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | fn execute_contract( [INFO] [stdout] | ---------------- the method is available for `App` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Executor` which provides `execute_contract` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use cw_multi_test::Executor; [INFO] [stdout] | [INFO] [stdout] help: there is a method `migrate_contract` with a similar name [INFO] [stdout] | [INFO] [stdout] 93 | .migrate_contract(owner.clone(), cash_addr.clone(), &send_msg, &[]) [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(owner_balance, Uint128(4900)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(owner_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 100 | assert_eq!(owner_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:102:30 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(sale_balance, Uint128(100)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(sale_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 102 | assert_eq!(sale_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_bank_balance` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | router.set_bank_balance(&buyer, funds).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ method not found in `App` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:111:31 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(buyer_balance, Uint128(0)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(buyer_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 111 | assert_eq!(buyer_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_contract` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 118 | let res = router [INFO] [stdout] | _______________- [INFO] [stdout] 119 | | .execute_contract( [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | fn execute_contract( [INFO] [stdout] | ---------------- the method is available for `App` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Executor` which provides `execute_contract` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use cw_multi_test::Executor; [INFO] [stdout] | [INFO] [stdout] help: there is a method `migrate_contract` with a similar name [INFO] [stdout] | [INFO] [stdout] 119 | .migrate_contract( [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | amount: Uint128(10u128), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 124 | amount: Uint128::new(_), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 124 | amount: Uint128::zero(), [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:133:31 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(buyer_balance, Uint128(10)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(buyer_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 133 | assert_eq!(buyer_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `query` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 136 | let query_res = router [INFO] [stdout] | _____________________- [INFO] [stdout] 137 | | .query( [INFO] [stdout] | |_________-^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `raw_query` with a similar name [INFO] [stdout] | [INFO] [stdout] 137 | .raw_query( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:146:39 [INFO] [stdout] | [INFO] [stdout] 146 | assert_eq!(balance.amount.amount, Uint128(1990)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 146 | assert_eq!(balance.amount.amount, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 146 | assert_eq!(balance.amount.amount, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `query` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 148 | let query_res = router [INFO] [stdout] | _____________________- [INFO] [stdout] 149 | | .query( [INFO] [stdout] | |_________-^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `raw_query` with a similar name [INFO] [stdout] | [INFO] [stdout] 149 | .raw_query( [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:158:39 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(balance.amount.amount, Uint128(10)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(balance.amount.amount, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 158 | assert_eq!(balance.amount.amount, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(buyer_balance, Uint128(10)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(buyer_balance, Uint128::new(_)); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 162 | assert_eq!(buyer_balance, Uint128::zero()); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_contract` found for struct `App` in the current scope [INFO] [stdout] --> src/integration_test.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 165 | let res = router [INFO] [stdout] | _______________- [INFO] [stdout] 166 | | .execute_contract(owner.clone(), sale_addr.clone(), &withdraw_msg, &[]) [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cw-multi-test-0.11.1/src/executor.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | fn execute_contract( [INFO] [stdout] | ---------------- the method is available for `App` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Executor` which provides `execute_contract` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use cw_multi_test::Executor; [INFO] [stdout] | [INFO] [stdout] help: there is a method `migrate_contract` with a similar name [INFO] [stdout] | [INFO] [stdout] 166 | .migrate_contract(owner.clone(), sale_addr.clone(), &withdraw_msg, &[]) [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot initialize a tuple struct which contains private fields [INFO] [stdout] --> src/integration_test.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(owner_balance, Uint128(4990)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: constructor is not visible here due to private fields [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cosmwasm-std-1.0.0-beta4/src/math/uint128.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Uint128(#[schemars(with = "String")] u128); [INFO] [stdout] | ^^^^ private field [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(owner_balance, Uint128::new(_)) [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] 173 | assert_eq!(owner_balance, Uint128::zero()) [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/contract.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | info: MessageInfo, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `denom` [INFO] [stdout] --> src/contract.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | denom: String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_denom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/contract.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | price: Uint128, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut amount = match funds.amount.checked_mul(Uint128::from(1000000u128)).unwrap().checked_div(state.price.amount) { [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] error: aborting due to 53 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0063, E0277, E0308, E0423, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sale` (lib test) due to 54 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ac5b52cbbf23c2b4996187aa1a02bde79c6e1e01460b0ece332d17bea6995cda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac5b52cbbf23c2b4996187aa1a02bde79c6e1e01460b0ece332d17bea6995cda", kill_on_drop: false }` [INFO] [stdout] ac5b52cbbf23c2b4996187aa1a02bde79c6e1e01460b0ece332d17bea6995cda