[INFO] cloning repository https://github.com/polpub/lottery-dapp
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/polpub/lottery-dapp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolpub%2Flottery-dapp", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolpub%2Flottery-dapp'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3ac5227e265b3688b2914a7cdf38f629b8c5cdeb
[INFO] testing polpub/lottery-dapp against 1.99.0-beta.1 for beta-1.99-5
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpolpub%2Flottery-dapp" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files: 52% (569/1081)
Updating files: 53% (573/1081)
Updating files: 54% (584/1081)
Updating files: 55% (595/1081)
Updating files: 56% (606/1081)
Updating files: 57% (617/1081)
Updating files: 58% (627/1081)
Updating files: 59% (638/1081)
Updating files: 60% (649/1081)
Updating files: 61% (660/1081)
Updating files: 62% (671/1081)
Updating files: 63% (682/1081)
Updating files: 64% (692/1081)
Updating files: 65% (703/1081)
Updating files: 65% (708/1081)
Updating files: 66% (714/1081)
Updating files: 67% (725/1081)
Updating files: 68% (736/1081)
Updating files: 69% (746/1081)
Updating files: 70% (757/1081)
Updating files: 71% (768/1081)
Updating files: 72% (779/1081)
Updating files: 73% (790/1081)
Updating files: 74% (800/1081)
Updating files: 75% (811/1081)
Updating files: 76% (822/1081)
Updating files: 77% (833/1081)
Updating files: 78% (844/1081)
Updating files: 78% (845/1081)
Updating files: 79% (854/1081)
Updating files: 80% (865/1081)
Updating files: 81% (876/1081)
Updating files: 82% (887/1081)
Updating files: 83% (898/1081)
Updating files: 84% (909/1081)
Updating files: 85% (919/1081)
Updating files: 86% (930/1081)
Updating files: 87% (941/1081)
Updating files: 88% (952/1081)
Updating files: 89% (963/1081)
Updating files: 90% (973/1081)
Updating files: 91% (984/1081)
Updating files: 92% (995/1081)
Updating files: 93% (1006/1081)
Updating files: 94% (1017/1081)
Updating files: 95% (1027/1081)
Updating files: 96% (1038/1081)
Updating files: 97% (1049/1081)
Updating files: 98% (1060/1081)
Updating files: 99% (1071/1081)
Updating files: 100% (1081/1081)
Updating files: 100% (1081/1081), done.
[INFO] started tweaking git repo https://github.com/polpub/lottery-dapp
[INFO] finished tweaking git repo https://github.com/polpub/lottery-dapp
[INFO] tweaked toml for git repo https://github.com/polpub/lottery-dapp written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/polpub/lottery-dapp on toolchain 1.99.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/polpub/lottery-dapp 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b
[INFO] running `Command { std: "docker" "start" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] Compiling proc-macro2 v1.0.106
[INFO] [stderr] Compiling unicode-ident v1.0.24
[INFO] [stderr] Compiling quote v1.0.45
[INFO] [stderr] Compiling autocfg v1.5.1
[INFO] [stderr] Compiling hex v0.4.3
[INFO] [stderr] Compiling rustversion v1.0.22
[INFO] [stderr] Compiling smallvec v1.15.1
[INFO] [stderr] Compiling unwrap-infallible v1.0.0
[INFO] [stderr] Compiling endian-type v0.2.0
[INFO] [stderr] Compiling arrayvec v0.7.6
[INFO] [stderr] Compiling bitflags v2.11.1
[INFO] [stderr] Compiling typenum v1.20.0
[INFO] [stderr] Compiling num-traits v0.2.19
[INFO] [stderr] Compiling nibble_vec v0.1.0
[INFO] [stderr] Compiling radix_trie v0.3.0
[INFO] [stderr] Compiling generic-array v1.4.1
[INFO] [stderr] Compiling syn v2.0.117
[INFO] [stderr] Compiling multiversx-sc-codec-derive v0.25.0
[INFO] [stderr] Compiling multiversx-sc-derive v0.66.0
[INFO] [stderr] Compiling multiversx-sc-codec v0.25.0
[INFO] [stderr] Compiling multiversx-chain-core v0.23.0
[INFO] [stderr] Compiling multiversx-sc v0.66.0
[INFO] [stderr] Compiling lottery v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] Warning! LotteryStatus #[type_abi] implementation sees no derive traits. Make sure that the derive attribute comes after #[type_abi]
[INFO] [stdout] warning: use of deprecated macro `TypeAbi`: Replace with attribute #[type_abi], which should be placed before all derives. More about this: https://docs.multiversx.com/developers/transactions/tx-migration/#replace-derivetypeabi-with-type_abi
[INFO] [stdout] --> src/lottery.rs:6:10
[INFO] [stdout] |
[INFO] [stdout] 6 | #[derive(TypeAbi, TopEncode, TopDecode, PartialEq, Clone, Copy)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:33:42
[INFO] [stdout] |
[INFO] [stdout] 33 | let deadline = self.blockchain().get_block_timestamp() + duration_seconds;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:49:31
[INFO] [stdout] |
[INFO] [stdout] 49 | self.blockchain().get_block_timestamp() < self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::CallValueWrapper::::egld_value`: Does not cover multi-transfer scenarios properly, but left for backwards compatibility. Please use .egld() instead!
[INFO] [stdout] --> src/lottery.rs:53:41
[INFO] [stdout] |
[INFO] [stdout] 53 | let payment = self.call_value().egld_value().clone_value();
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:73:31
[INFO] [stdout] |
[INFO] [stdout] 73 | self.blockchain().get_block_timestamp() >= self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.92s
[INFO] running `Command { std: "docker" "inspect" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] Compiling serde_core v1.0.228
[INFO] [stderr] Compiling version_check v0.9.5
[INFO] [stderr] Compiling cfg-if v1.0.4
[INFO] [stderr] Compiling serde v1.0.228
[INFO] [stderr] Compiling subtle v2.6.1
[INFO] [stderr] Compiling hex v0.4.3
[INFO] [stderr] Compiling const-oid v0.10.2
[INFO] [stderr] Compiling semver v1.0.28
[INFO] [stderr] Compiling cpufeatures v0.3.0
[INFO] [stderr] Compiling sponge-cursor v0.1.0
[INFO] [stderr] Compiling num-traits v0.2.19
[INFO] [stderr] Compiling hybrid-array v0.4.12
[INFO] [stderr] Compiling foldhash v0.2.0
[INFO] [stderr] Compiling bech32 v0.11.1
[INFO] [stderr] Compiling serde_derive v1.0.228
[INFO] [stderr] Compiling equivalent v1.0.2
[INFO] [stderr] Compiling keccak v0.2.0
[INFO] [stderr] Compiling anyhow v1.0.102
[INFO] [stderr] Compiling utf8parse v0.2.2
[INFO] [stderr] Compiling rand_core v0.10.1
[INFO] [stderr] Compiling libc v0.2.186
[INFO] [stderr] Compiling zmij v1.0.21
[INFO] [stderr] Compiling memchr v2.8.0
[INFO] [stderr] Compiling rustc_version v0.4.1
[INFO] [stderr] Compiling anstyle-parse v1.0.0
[INFO] [stderr] Compiling generic-array v0.14.7
[INFO] [stderr] Compiling crypto-common v0.2.2
[INFO] [stderr] Compiling block-buffer v0.12.0
[INFO] [stderr] Compiling multiversx-sc-codec-derive v0.25.0
[INFO] [stderr] Compiling serde_json v1.0.150
[INFO] [stderr] Compiling is_terminal_polyfill v1.70.2
[INFO] [stderr] Compiling winnow v1.0.3
[INFO] [stderr] Compiling anstyle v1.0.14
[INFO] [stderr] Compiling cpufeatures v0.2.17
[INFO] [stderr] Compiling colorchoice v1.0.5
[INFO] [stderr] Compiling anstyle-query v1.1.5
[INFO] [stderr] Compiling getrandom v0.4.2
[INFO] [stderr] Compiling leb128fmt v0.1.0
[INFO] [stderr] Compiling curve25519-dalek v4.1.3
[INFO] [stderr] Compiling multiversx-sc-derive v0.66.0
[INFO] [stderr] Compiling wasm-encoder v0.250.0
[INFO] [stderr] Compiling toml_parser v1.1.2+spec-1.1.0
[INFO] [stderr] Compiling anstream v1.0.0
[INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr] Compiling zeroize v1.8.2
[INFO] [stderr] Compiling strsim v0.11.1
[INFO] [stderr] Compiling clap_lex v1.1.0
[INFO] [stderr] Compiling signature v2.2.0
[INFO] [stderr] Compiling toml_writer v1.1.1+spec-1.1.0
[INFO] [stderr] Compiling bumpalo v3.20.3
[INFO] [stderr] Compiling num-integer v0.1.46
[INFO] [stderr] Compiling unicode-width v0.2.2
[INFO] [stderr] Compiling heck v0.5.0
[INFO] [stderr] Compiling itoa v1.0.18
[INFO] [stderr] Compiling digest v0.11.3
[INFO] [stderr] Compiling ed25519 v2.2.3
[INFO] [stderr] Compiling clap_derive v4.6.1
[INFO] [stderr] Compiling crypto-common v0.1.7
[INFO] [stderr] Compiling block-buffer v0.10.4
[INFO] [stderr] Compiling num-bigint v0.4.6
[INFO] [stderr] Compiling clap_builder v4.6.0
[INFO] [stderr] Compiling chacha20 v0.10.0
[INFO] [stderr] Compiling termcolor v1.4.1
[INFO] [stderr] Compiling either v1.16.0
[INFO] [stderr] Compiling digest v0.10.7
[INFO] [stderr] Compiling sha3 v0.12.0
[INFO] [stderr] Compiling sha2 v0.11.0
[INFO] [stderr] Compiling colored v3.1.1
[INFO] [stderr] Compiling unicode-segmentation v1.13.2
[INFO] [stderr] Compiling itertools v0.14.0
[INFO] [stderr] Compiling blake2 v0.10.6
[INFO] [stderr] Compiling sha2 v0.10.9
[INFO] [stderr] Compiling rand v0.10.1
[INFO] [stderr] Compiling rand_seeder v0.5.0
[INFO] [stderr] Compiling log v0.4.30
[INFO] [stderr] Compiling lazy_static v1.5.0
[INFO] [stderr] Compiling wast v250.0.0
[INFO] [stderr] Compiling convert_case v0.11.0
[INFO] [stderr] Compiling hex-literal v1.1.0
[INFO] [stderr] Compiling simple-error v0.3.2
[INFO] [stderr] Compiling pathdiff v0.2.3
[INFO] [stderr] Compiling multiversx-sc-codec v0.25.0
[INFO] [stderr] Compiling ed25519-dalek v2.2.0
[INFO] [stderr] Compiling hashbrown v0.17.1
[INFO] [stderr] Compiling toml_datetime v1.1.1+spec-1.1.0
[INFO] [stderr] Compiling serde_spanned v1.1.1
[INFO] [stderr] Compiling multiversx-chain-vm-executor v0.5.1
[INFO] [stderr] Compiling indexmap v2.14.0
[INFO] [stderr] Compiling multiversx-chain-scenario-format v0.26.1
[INFO] [stderr] Compiling multiversx-chain-core v0.23.0
[INFO] [stderr] Compiling wasmparser v0.249.0
[INFO] [stderr] Compiling toml v1.1.2+spec-1.1.0
[INFO] [stderr] Compiling clap v4.6.1
[INFO] [stderr] Compiling multiversx-sc v0.66.0
[INFO] [stderr] Compiling multiversx-chain-vm v0.23.0
[INFO] [stderr] Compiling wat v1.250.0
[INFO] [stderr] Compiling lottery v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] Warning! LotteryStatus #[type_abi] implementation sees no derive traits. Make sure that the derive attribute comes after #[type_abi]
[INFO] [stdout] warning: use of deprecated macro `TypeAbi`: Replace with attribute #[type_abi], which should be placed before all derives. More about this: https://docs.multiversx.com/developers/transactions/tx-migration/#replace-derivetypeabi-with-type_abi
[INFO] [stdout] --> src/lottery.rs:6:10
[INFO] [stdout] |
[INFO] [stdout] 6 | #[derive(TypeAbi, TopEncode, TopDecode, PartialEq, Clone, Copy)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:33:42
[INFO] [stdout] |
[INFO] [stdout] 33 | let deadline = self.blockchain().get_block_timestamp() + duration_seconds;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:49:31
[INFO] [stdout] |
[INFO] [stdout] 49 | self.blockchain().get_block_timestamp() < self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::CallValueWrapper::::egld_value`: Does not cover multi-transfer scenarios properly, but left for backwards compatibility. Please use .egld() instead!
[INFO] [stdout] --> src/lottery.rs:53:41
[INFO] [stdout] |
[INFO] [stdout] 53 | let payment = self.call_value().egld_value().clone_value();
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:73:31
[INFO] [stdout] |
[INFO] [stdout] 73 | self.blockchain().get_block_timestamp() >= self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Compiling wasmprinter v0.249.0
[INFO] [stderr] Compiling multiversx-sc-meta-lib v0.66.0
[INFO] [stderr] Compiling multiversx-sc-scenario v0.66.0
[INFO] [stdout] Warning! LotteryStatus #[type_abi] implementation sees no derive traits. Make sure that the derive attribute comes after #[type_abi]
[INFO] [stdout] warning: use of deprecated macro `TypeAbi`: Replace with attribute #[type_abi], which should be placed before all derives. More about this: https://docs.multiversx.com/developers/transactions/tx-migration/#replace-derivetypeabi-with-type_abi
[INFO] [stdout] --> src/lottery.rs:6:10
[INFO] [stdout] |
[INFO] [stdout] 6 | #[derive(TypeAbi, TopEncode, TopDecode, PartialEq, Clone, Copy)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:33:42
[INFO] [stdout] |
[INFO] [stdout] 33 | let deadline = self.blockchain().get_block_timestamp() + duration_seconds;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:49:31
[INFO] [stdout] |
[INFO] [stdout] 49 | self.blockchain().get_block_timestamp() < self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::CallValueWrapper::::egld_value`: Does not cover multi-transfer scenarios properly, but left for backwards compatibility. Please use .egld() instead!
[INFO] [stdout] --> src/lottery.rs:53:41
[INFO] [stdout] |
[INFO] [stdout] 53 | let payment = self.call_value().egld_value().clone_value();
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stdout] --> src/lottery.rs:73:31
[INFO] [stdout] |
[INFO] [stdout] 73 | self.blockchain().get_block_timestamp() >= self.deadline().get(),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 30.05s
[INFO] running `Command { std: "docker" "inspect" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: use of deprecated macro `TypeAbi`: Replace with attribute #[type_abi], which should be placed before all derives. More about this: https://docs.multiversx.com/developers/transactions/tx-migration/#replace-derivetypeabi-with-type_abi
[INFO] [stderr] --> src/lottery.rs:6:10
[INFO] [stderr] |
[INFO] [stderr] 6 | #[derive(TypeAbi, TopEncode, TopDecode, PartialEq, Clone, Copy)]
[INFO] [stderr] | ^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(deprecated)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stderr] --> src/lottery.rs:33:42
[INFO] [stderr] |
[INFO] [stderr] 33 | let deadline = self.blockchain().get_block_timestamp() + duration_seconds;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stderr] --> src/lottery.rs:49:31
[INFO] [stderr] |
[INFO] [stderr] 49 | self.blockchain().get_block_timestamp() < self.deadline().get(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: use of deprecated method `multiversx_sc::contract_base::CallValueWrapper::::egld_value`: Does not cover multi-transfer scenarios properly, but left for backwards compatibility. Please use .egld() instead!
[INFO] [stderr] --> src/lottery.rs:53:41
[INFO] [stderr] |
[INFO] [stderr] 53 | let payment = self.call_value().egld_value().clone_value();
[INFO] [stderr] | ^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: use of deprecated method `multiversx_sc::contract_base::BlockchainWrapper::::get_block_timestamp`: Use get_block_timestamp_seconds instead, it returns a properly typed timestamps
[INFO] [stderr] --> src/lottery.rs:73:31
[INFO] [stderr] |
[INFO] [stderr] 73 | self.blockchain().get_block_timestamp() >= self.deadline().get(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: `lottery` (lib) generated 5 warnings
[INFO] [stderr] warning: `lottery` (lib test) generated 5 warnings (5 duplicates)
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] [stderr] Running unittests src/lottery.rs (/opt/rustwide/target/debug/deps/lottery-0bd820338bf7fe56)
[INFO] [stdout]
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] [stderr] Running tests/lottery_scenario_go_test.rs (/opt/rustwide/target/debug/deps/lottery_scenario_go_test-6fbbbe7a64a779f4)
[INFO] [stdout]
[INFO] [stdout] running 1 test
[INFO] [stdout] test empty_go ... ok
[INFO] [stdout]
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] [stderr] Running tests/lottery_scenario_rs_test.rs (/opt/rustwide/target/debug/deps/lottery_scenario_rs_test-325de613a2f9380e)
[INFO] [stdout]
[INFO] [stdout] running 1 test
[INFO] [stdout] test empty_rs ... ok
[INFO] [stdout]
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s
[INFO] [stdout]
[INFO] [stderr] Doc-tests lottery
[INFO] [stdout] Warning! LotteryStatus #[type_abi] implementation sees no derive traits. Make sure that the derive attribute comes after #[type_abi]
[INFO] [stdout]
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b", kill_on_drop: false }`
[INFO] [stdout] 132c4b776bc51decaa3a50dd836790588638ada6b402c6d3538f46c6c591ba3b