[INFO] cloning repository https://github.com/ILoomans/Ink-ERC20-With-Seats [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ILoomans/Ink-ERC20-With-Seats" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FILoomans%2FInk-ERC20-With-Seats", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FILoomans%2FInk-ERC20-With-Seats'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6dbd7c8356f98fa9a6c50a5f7396040c5cae1daf [INFO] testing ILoomans/Ink-ERC20-With-Seats against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FILoomans%2FInk-ERC20-With-Seats" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ILoomans/Ink-ERC20-With-Seats on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ILoomans/Ink-ERC20-With-Seats [INFO] finished tweaking git repo https://github.com/ILoomans/Ink-ERC20-With-Seats [INFO] tweaked toml for git repo https://github.com/ILoomans/Ink-ERC20-With-Seats written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/ILoomans/Ink-ERC20-With-Seats already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.wasm-opt [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 306ef72d6da237a9aae18e8748d96a80d81905d8d6a08c1d1f0d02318ed0f95d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "306ef72d6da237a9aae18e8748d96a80d81905d8d6a08c1d1f0d02318ed0f95d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "306ef72d6da237a9aae18e8748d96a80d81905d8d6a08c1d1f0d02318ed0f95d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "306ef72d6da237a9aae18e8748d96a80d81905d8d6a08c1d1f0d02318ed0f95d", kill_on_drop: false }` [INFO] [stdout] 306ef72d6da237a9aae18e8748d96a80d81905d8d6a08c1d1f0d02318ed0f95d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71b6739d08a7b4b59d8d132a55a6e4f0452dbe0dd6bdd47410aa2115cbd94fe4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "71b6739d08a7b4b59d8d132a55a6e4f0452dbe0dd6bdd47410aa2115cbd94fe4", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.wasm-opt [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling arrayvec v0.7.1 [INFO] [stderr] Compiling byte-slice-cast v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling sp-std v3.0.0 [INFO] [stderr] Compiling half v1.7.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling array-init v2.0.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling ink_prelude v3.0.0-rc6 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling ink_allocator v3.0.0-rc6 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling bitvec v0.20.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling libsecp256k1 v0.3.5 [INFO] [stderr] Compiling blake2 v0.9.2 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling integer-sqrt v0.1.5 [INFO] [stderr] Compiling plotters v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling criterion-plot v0.4.4 [INFO] [stderr] Compiling ink_lang_ir v3.0.0-rc6 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.1 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling sp-debug-derive v3.0.0 [INFO] [stderr] Compiling ink_storage_derive v3.0.0-rc6 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling impl-serde v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling serde_cbor v0.11.2 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling criterion v0.3.5 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling scale-info-derive v1.0.0 [INFO] [stderr] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling scale-info v1.0.0 [INFO] [stderr] Compiling sp-arithmetic v3.0.0 [INFO] [stderr] Compiling ink_lang_codegen v3.0.0-rc6 [INFO] [stderr] Compiling ink_primitives v3.0.0-rc6 [INFO] [stderr] Compiling ink_metadata v3.0.0-rc6 [INFO] [stderr] Compiling ink_lang_macro v3.0.0-rc6 [INFO] [stderr] Compiling ink_env v3.0.0-rc6 [INFO] [stderr] Compiling ink_storage v3.0.0-rc6 [INFO] [stderr] Compiling ink_eth_compatibility v3.0.0-rc6 [INFO] [stderr] Compiling ink_lang v3.0.0-rc6 [INFO] [stderr] Compiling erc20 v3.0.0-rc3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | if (seats.clone().len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (seats.clone().len() == 0) { [INFO] [stdout] 97 + if seats.clone().len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOwner` should have a snake case name [INFO] [stdout] --> lib.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn getOwner(&self) -> AccountId { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_owner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getPrice` should have a snake case name [INFO] [stdout] --> lib.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn getPrice(&self) -> u128 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> lib.rs:228:21 [INFO] [stdout] | [INFO] [stdout] 228 | self.transfer_from_to(self.owner, to, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> lib.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | self.env().transfer(self.owner, self.contract_balance); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 10s [INFO] running `Command { std: "docker" "inspect" "71b6739d08a7b4b59d8d132a55a6e4f0452dbe0dd6bdd47410aa2115cbd94fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71b6739d08a7b4b59d8d132a55a6e4f0452dbe0dd6bdd47410aa2115cbd94fe4", kill_on_drop: false }` [INFO] [stdout] 71b6739d08a7b4b59d8d132a55a6e4f0452dbe0dd6bdd47410aa2115cbd94fe4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfc98bca5fa7f6f9d49db1d04bcd8cd9b174edc088d7add619cb7782fedbc1a5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cfc98bca5fa7f6f9d49db1d04bcd8cd9b174edc088d7add619cb7782fedbc1a5", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.wasm-opt [INFO] [stderr] Compiling erc20 v3.0.0-rc3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | if (seats.clone().len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - if (seats.clone().len() == 0) { [INFO] [stdout] 97 + if seats.clone().len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:636:29 [INFO] [stdout] | [INFO] [stdout] 636 | let mut erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:577:29 [INFO] [stdout] | [INFO] [stdout] 577 | let mut erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:533:29 [INFO] [stdout] | [INFO] [stdout] 533 | let mut erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:501:29 [INFO] [stdout] | [INFO] [stdout] 501 | let mut erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:481:25 [INFO] [stdout] | [INFO] [stdout] 481 | let erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:464:25 [INFO] [stdout] | [INFO] [stdout] 464 | let erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> lib.rs:446:26 [INFO] [stdout] | [INFO] [stdout] 446 | let _erc20 = Erc20::new(100); [INFO] [stdout] | ^^^^^^^^^^ --- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> lib.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 85 | /// Creates a new ERC-20 contract with the specified initial supply. [INFO] [stdout] | _________- [INFO] [stdout] | |_________| [INFO] [stdout] | ||_________| [INFO] [stdout] | |||_________| [INFO] [stdout] | |||| [INFO] [stdout] 86 | |||| [INFO] [stdout] 87 | |||| /// parent account will control it [INFO] [stdout] 88 | |||| #[ink(constructor)] [INFO] [stdout] 89 | |||| pub fn new( [INFO] [stdout] | |||| ^^^ [INFO] [stdout] 90 | |||| initial_supply: Balance, [INFO] [stdout] | ||||____________- [INFO] [stdout] 91 | ||| price: u128, [INFO] [stdout] | |||_____________- [INFO] [stdout] 92 | || owner: AccountId, [INFO] [stdout] | ||______________- [INFO] [stdout] 93 | | seats: Vec, [INFO] [stdout] | |_______________- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `erc20` due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "cfc98bca5fa7f6f9d49db1d04bcd8cd9b174edc088d7add619cb7782fedbc1a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfc98bca5fa7f6f9d49db1d04bcd8cd9b174edc088d7add619cb7782fedbc1a5", kill_on_drop: false }` [INFO] [stdout] cfc98bca5fa7f6f9d49db1d04bcd8cd9b174edc088d7add619cb7782fedbc1a5