[INFO] cloning repository https://github.com/papermoonio/polkavm-erc20-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/papermoonio/polkavm-erc20-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapermoonio%2Fpolkavm-erc20-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapermoonio%2Fpolkavm-erc20-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 36992d0881108fabfe117a69b7563673945332a7 [INFO] checking papermoonio/polkavm-erc20-in-rust against try#54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47 for pr-153041 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpapermoonio%2Fpolkavm-erc20-in-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-7-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/papermoonio/polkavm-erc20-in-rust [INFO] finished tweaking git repo https://github.com/papermoonio/polkavm-erc20-in-rust [INFO] tweaked toml for git repo https://github.com/papermoonio/polkavm-erc20-in-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/papermoonio/polkavm-erc20-in-rust on toolchain 54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/papermoonio/polkavm-erc20-in-rust 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" "+54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/paritytech/polkavm.git` [INFO] [stderr] Updating git repository `https://github.com/paritytech/polkadot-sdk.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Updating polkavm-common v0.23.0 -> v0.25.0 [INFO] [stderr] Updating polkavm-derive v0.23.0 -> v0.25.0 (available: v0.31.0) [INFO] [stderr] Updating polkavm-derive-impl v0.23.0 -> v0.25.0 [INFO] [stderr] Updating polkavm-derive-impl-macro v0.23.0 -> v0.25.0 [INFO] [stderr] Downgrading simplealloc v0.23.0 (https://github.com/paritytech/polkavm.git#910adbda) -> #c1b00b81 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded polkavm-derive v0.25.0 [INFO] [stderr] Downloaded polkavm-derive-impl v0.21.0 [INFO] [stderr] Downloaded polkavm-derive v0.21.0 [INFO] [stderr] Downloaded polkavm-derive-impl-macro v0.25.0 [INFO] [stderr] Downloaded polkavm-common v0.21.0 [INFO] [stderr] Downloaded polkavm-derive-impl-macro v0.21.0 [INFO] [stderr] Downloaded polkavm-derive-impl v0.25.0 [INFO] [stderr] Downloaded polkavm-common v0.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c9125367fe7c26eb74e04a9a13a3969c5d3ca98e8f71fa45b1c6c8e4e5fb2c3 [INFO] running `Command { std: "docker" "start" "-a" "4c9125367fe7c26eb74e04a9a13a3969c5d3ca98e8f71fa45b1c6c8e4e5fb2c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c9125367fe7c26eb74e04a9a13a3969c5d3ca98e8f71fa45b1c6c8e4e5fb2c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9125367fe7c26eb74e04a9a13a3969c5d3ca98e8f71fa45b1c6c8e4e5fb2c3", kill_on_drop: false }` [INFO] [stdout] 4c9125367fe7c26eb74e04a9a13a3969c5d3ca98e8f71fa45b1c6c8e4e5fb2c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef99e64b8a822c7d265b50be66ebbf0b09124566f743051e3a47bb3828c489fa [INFO] running `Command { std: "docker" "start" "-a" "ef99e64b8a822c7d265b50be66ebbf0b09124566f743051e3a47bb3828c489fa", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling polkavm-common v0.25.0 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking simplealloc v0.0.1 (https://github.com/paritytech/polkavm.git#c1b00b81) [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking ethereum-types v0.14.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking ethabi v18.0.0 [INFO] [stderr] Compiling polkavm-derive-impl v0.25.0 [INFO] [stderr] Compiling pallet-revive-proc-macro v0.1.0 (https://github.com/paritytech/polkadot-sdk.git#187cddde) [INFO] [stderr] Compiling polkavm-derive-impl-macro v0.25.0 [INFO] [stderr] Checking polkavm-derive v0.25.0 [INFO] [stderr] Checking pallet-revive-uapi v0.1.0 (https://github.com/paritytech/polkadot-sdk.git#187cddde) [INFO] [stderr] Checking rust-contract-template v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/erc20.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / fn panic(_info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 40 | | unsafe { [INFO] [stdout] 41 | | core::arch::asm!("unimp"); [INFO] [stdout] 42 | | core::hint::unreachable_unchecked(); [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/54bb9bb1bbe87f59b5a2e9afea4c8cedcf5e0b47/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-957b1fe07cf96b13.rmeta [INFO] [stdout] = note: second definition in the local crate (`erc20`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-contract-template` (bin "erc20" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | input!(data: &[u8; 256],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | input!(data: &[u8; 256],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `origin` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | api::origin(&mut sender); [INFO] [stdout] | ^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | api::set_storage(StorageFlags::empty(), DECIMALS, &data); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | api::set_storage(StorageFlags::empty(), TOTAL_SUPPLY, &data); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 86 | api::set_storage(StorageFlags::empty(), &get_balance_key(&sender), &data); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | input!(selector: &[u8; 4],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | input!(selector: &[u8; 4],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | let length = api::call_data_size(); [INFO] [stdout] | ^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `origin` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | api::origin(&mut sender); [INFO] [stdout] | ^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:106:18 [INFO] [stdout] | [INFO] [stdout] 106 | api::return_value(ReturnFlags::empty(), &get_string(NAME_LENGTH, NAME)[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | api::return_value(ReturnFlags::empty(), &get_string(SYMBOL_LENGTH, SYMBOL)[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | let _ = api::get_storage(StorageFlags::empty(), DECIMALS, &mut &mut data[..]); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:114:18 [INFO] [stdout] | [INFO] [stdout] 114 | api::return_value(ReturnFlags::empty(), &data[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | let _ = api::get_storage(StorageFlags::empty(), TOTAL_SUPPLY, &mut &mut data[..]); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:119:18 [INFO] [stdout] | [INFO] [stdout] 119 | api::return_value(ReturnFlags::empty(), &data[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | input!(buffer: &[u8; 4 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | input!(buffer: &[u8; 4 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:133:22 [INFO] [stdout] | [INFO] [stdout] 133 | api::return_value(ReturnFlags::empty(), &data[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:147:30 [INFO] [stdout] | [INFO] [stdout] 147 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | api::return_value(ReturnFlags::empty(), &data[..]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 167 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:178:30 [INFO] [stdout] | [INFO] [stdout] 178 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:190:22 [INFO] [stdout] | [INFO] [stdout] 190 | api::set_storage(StorageFlags::empty(), &get_balance_key(&sender), &data); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 196 | api::set_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:202:22 [INFO] [stdout] | [INFO] [stdout] 202 | api::return_value(ReturnFlags::empty(), &[0_u8; 32]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | input!(buffer: &[u8; 4 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 217 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:228:30 [INFO] [stdout] | [INFO] [stdout] 228 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | api::set_storage(StorageFlags::empty(), &get_balance_key(&sender), &data); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:244:22 [INFO] [stdout] | [INFO] [stdout] 244 | api::set_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:250:22 [INFO] [stdout] | [INFO] [stdout] 250 | api::return_value(ReturnFlags::empty(), &[0_u8; 32]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_size` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | input!(buffer: &[u8; 4 + 32 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `call_data_copy` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | input!(buffer: &[u8; 4 + 32 + 32 + 32],); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `input` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:265:30 [INFO] [stdout] | [INFO] [stdout] 265 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:288:22 [INFO] [stdout] | [INFO] [stdout] 288 | api::set_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:298:22 [INFO] [stdout] | [INFO] [stdout] 298 | api::set_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `return_value` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:304:22 [INFO] [stdout] | [INFO] [stdout] 304 | api::return_value(ReturnFlags::empty(), &[0_u8; 32]) [INFO] [stdout] | ^^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:331:18 [INFO] [stdout] | [INFO] [stdout] 331 | let _ = api::get_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:339:18 [INFO] [stdout] | [INFO] [stdout] 339 | let _ = api::get_storage(uapi::StorageFlags::empty(), data_key, &mut &mut data[..]); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:357:18 [INFO] [stdout] | [INFO] [stdout] 357 | let _ = api::set_storage( [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `set_storage` found for enum `HostFnImpl` in the current scope [INFO] [stdout] --> src/erc20.rs:362:10 [INFO] [stdout] | [INFO] [stdout] 362 | api::set_storage(uapi::StorageFlags::empty(), data_key, &data[..]); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `HostFnImpl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-contract-template` (bin "erc20") due to 50 previous errors [INFO] running `Command { std: "docker" "inspect" "ef99e64b8a822c7d265b50be66ebbf0b09124566f743051e3a47bb3828c489fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef99e64b8a822c7d265b50be66ebbf0b09124566f743051e3a47bb3828c489fa", kill_on_drop: false }` [INFO] [stdout] ef99e64b8a822c7d265b50be66ebbf0b09124566f743051e3a47bb3828c489fa