[INFO] fetching crate mint-proxy 1.1.2... [INFO] testing mint-proxy-1.1.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate mint-proxy 1.1.2 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate mint-proxy 1.1.2 [INFO] finished tweaking crates.io crate mint-proxy 1.1.2 [INFO] tweaked toml for crates.io crate mint-proxy 1.1.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mint-proxy 1.1.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 261 packages to latest compatible versions [INFO] [stderr] Adding anchor-spl v0.25.0 (available: v0.31.1) [INFO] [stderr] Adding solana-frozen-abi v1.10.41 (available: v1.18.26) [INFO] [stderr] Adding solana-frozen-abi-macro v1.10.41 (available: v1.18.26) [INFO] [stderr] Adding solana-program v1.10.41 (available: v1.18.26) [INFO] [stderr] Adding solana-sdk-macro v1.10.41 (available: v1.18.26) [INFO] [stderr] Adding spl-associated-token-account v1.0.5 (available: v1.1.3) [INFO] [stderr] Adding spl-token v3.3.1 (available: v3.5.0) [INFO] [stderr] Adding zeroize v1.3.0 (available: v1.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18adf99e80a0621ef797a3fd4655e4f8eaf2691d8af7ec67256fbaa5b4e57659 [INFO] running `Command { std: "docker" "start" "-a" "18adf99e80a0621ef797a3fd4655e4f8eaf2691d8af7ec67256fbaa5b4e57659", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18adf99e80a0621ef797a3fd4655e4f8eaf2691d8af7ec67256fbaa5b4e57659", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18adf99e80a0621ef797a3fd4655e4f8eaf2691d8af7ec67256fbaa5b4e57659", kill_on_drop: false }` [INFO] [stdout] 18adf99e80a0621ef797a3fd4655e4f8eaf2691d8af7ec67256fbaa5b4e57659 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 87cd80013d5d28f49028174d7a63c85566da3fa4c702f7f1ae7fa2048b008a60 [INFO] running `Command { std: "docker" "start" "-a" "87cd80013d5d28f49028174d7a63c85566da3fa4c702f7f1ae7fa2048b008a60", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling five8_core v0.1.2 [INFO] [stderr] Compiling solana-sanitize v2.2.1 [INFO] [stderr] Compiling borsh v1.5.7 [INFO] [stderr] Compiling solana-atomic-u64 v2.2.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling five8 v0.2.1 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling five8_const v0.1.4 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling solana-msg v2.2.1 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling solana-program-memory v2.3.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.10.41 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling solana-frozen-abi v1.10.41 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling solana-program v1.10.41 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling solana-decode-error v2.3.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling solana-native-token v2.3.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling solana-program-option v2.2.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling solana-big-mod-exp v2.2.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling solana-sdk-macro v2.2.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.10.41 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling anchor-derive-space v0.31.1 [INFO] [stderr] Compiling static-pubkey v1.0.3 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling solana-hash v2.3.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling solana-fee-calculator v2.2.1 [INFO] [stderr] Compiling solana-short-vec v2.2.1 [INFO] [stderr] Compiling solana-serde-varint v2.2.2 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling anchor-syn v0.25.0 [INFO] [stderr] Compiling anchor-syn v0.31.1 [INFO] [stderr] Compiling anchor-lang-idl v0.1.2 [INFO] [stderr] Compiling solana-keccak-hasher v2.2.1 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling solana-sha256-hasher v2.2.1 [INFO] [stderr] Compiling solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling borsh v0.10.4 [INFO] [stderr] Compiling solana-borsh v2.2.1 [INFO] [stderr] Compiling solana-pubkey v2.4.0 [INFO] [stderr] Compiling solana-instruction v2.3.0 [INFO] [stderr] Compiling solana-sdk-ids v2.2.1 [INFO] [stderr] Compiling solana-nonce v2.2.1 [INFO] [stderr] Compiling solana-sysvar-id v2.2.1 [INFO] [stderr] Compiling solana-clock v2.2.2 [INFO] [stderr] Compiling solana-slot-hashes v2.2.1 [INFO] [stderr] Compiling solana-rent v2.2.1 [INFO] [stderr] Compiling solana-last-restart-slot v2.2.1 [INFO] [stderr] Compiling solana-slot-history v2.2.1 [INFO] [stderr] Compiling solana-epoch-schedule v2.2.1 [INFO] [stderr] Compiling solana-epoch-rewards v2.2.1 [INFO] [stderr] Compiling solana-program-error v2.2.2 [INFO] [stderr] Compiling solana-system-interface v1.0.0 [INFO] [stderr] Compiling solana-serialize-utils v2.2.1 [INFO] [stderr] Compiling solana-bincode v2.2.1 [INFO] [stderr] Compiling solana-transaction-error v2.2.1 [INFO] [stderr] Compiling solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Compiling solana-stable-layout v2.2.1 [INFO] [stderr] Compiling solana-loader-v2-interface v2.2.1 [INFO] [stderr] Compiling solana-account-info v2.3.0 [INFO] [stderr] Compiling solana-program-pack v2.2.1 [INFO] [stderr] Compiling solana-cpi v2.2.1 [INFO] [stderr] Compiling solana-program-entrypoint v2.3.0 [INFO] [stderr] Compiling solana-instructions-sysvar v2.2.2 [INFO] [stderr] Compiling solana-account v2.2.1 [INFO] [stderr] Compiling solana-message v2.4.0 [INFO] [stderr] Compiling solana-stake-interface v1.2.1 [INFO] [stderr] Compiling solana-vote-interface v2.2.5 [INFO] [stderr] Compiling solana-loader-v3-interface v5.0.0 [INFO] [stderr] Compiling solana-loader-v4-interface v2.2.1 [INFO] [stderr] Compiling solana-feature-gate-interface v2.2.2 [INFO] [stderr] Compiling anchor-attribute-constant v0.25.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.25.0 [INFO] [stderr] Compiling anchor-attribute-interface v0.25.0 [INFO] [stderr] Compiling anchor-attribute-account v0.25.0 [INFO] [stderr] Compiling anchor-attribute-event v0.25.0 [INFO] [stderr] Compiling anchor-attribute-program v0.25.0 [INFO] [stderr] Compiling anchor-attribute-error v0.25.0 [INFO] [stderr] Compiling anchor-attribute-state v0.25.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.25.0 [INFO] [stderr] Compiling solana-sysvar v2.2.2 [INFO] [stderr] Compiling solana-example-mocks v2.2.1 [INFO] [stderr] Compiling anchor-attribute-error v0.31.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.31.1 [INFO] [stderr] Compiling anchor-attribute-account v0.31.1 [INFO] [stderr] Compiling anchor-derive-serde v0.31.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.31.1 [INFO] [stderr] Compiling anchor-attribute-program v0.31.1 [INFO] [stderr] Compiling anchor-attribute-event v0.31.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.31.1 [INFO] [stderr] Compiling solana-secp256k1-recover v2.2.1 [INFO] [stderr] Compiling solana-program v2.3.0 [INFO] [stderr] Compiling anchor-lang v0.31.1 [INFO] [stderr] Compiling spl-token v3.3.1 [INFO] [stderr] Compiling anchor-lang v0.25.0 [INFO] [stderr] Compiling spl-associated-token-account v1.0.5 [INFO] [stderr] Compiling anchor-spl v0.25.0 [INFO] [stderr] Compiling vipers v2.0.6 [INFO] [stderr] Compiling mint-proxy v1.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: dropping unsupported crate type `cdylib` for target `x86_64-unknown-linux-musl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `state` in this scope [INFO] [stdout] --> src/lib.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | #[state] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | / require!( [INFO] [stdout] 71 | | ctx.accounts.token_mint.freeze_authority.is_none(), [INFO] [stdout] 72 | | InvalidFreezeAuthority [INFO] [stdout] 73 | | ); [INFO] [stdout] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | / require!( [INFO] [stdout] 77 | | vipers::validate_derived_address( [INFO] [stdout] 78 | | ctx.accounts.proxy_mint_authority.key, [INFO] [stdout] 79 | | ctx.program_id, [INFO] [stdout] ... | [INFO] [stdout] 82 | | InvalidProxyAuthority [INFO] [stdout] 83 | | ); [INFO] [stdout] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | require!(ctx.accounts.owner.is_signer, Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | / require!( [INFO] [stdout] 119 | | self.pending_owner == *ctx.accounts.owner.key, [INFO] [stdout] 120 | | PendingOwnerMismatch [INFO] [stdout] 121 | | ); [INFO] [stdout] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | require!(minter_info.allowance >= amount, MinterAllowanceExceeded); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | require!(new_supply <= self.hard_cap, HardcapExceeded); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 48 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | require!(self.minter.is_signer, Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 4 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 4 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 4 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stdout] --> src/lib.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | / require!( [INFO] [stdout] 390 | | auth.owner.is_signer && state.owner == *auth.owner.key, [INFO] [stdout] 391 | | Unauthorized [INFO] [stdout] 392 | | ); [INFO] [stdout] | |_____^ could not find `ErrorCode` in `$crate` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 4 + use crate::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 4 + use crate::error::ErrorCode; [INFO] [stdout] | [INFO] [stdout] 4 + use anchor_lang::prelude::ErrorCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program_entrypoint` crate, try updating your dependency with `cargo update -p solana_program_entrypoint` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 9 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program_entrypoint` crate, try updating your dependency with `cargo update -p solana_program_entrypoint` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program_entrypoint` crate, try updating your dependency with `cargo update -p solana_program_entrypoint` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 9 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program_entrypoint` crate, try updating your dependency with `cargo update -p solana_program_entrypoint` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `no-log-ix-name` [INFO] [stdout] --> src/lib.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 207 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:247:10 [INFO] [stdout] | [INFO] [stdout] 247 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:281:10 [INFO] [stdout] | [INFO] [stdout] 281 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, and `no-idl` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:228:21 [INFO] [stdout] | [INFO] [stdout] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:228:21 [INFO] [stdout] | [INFO] [stdout] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:326:22 [INFO] [stdout] | [INFO] [stdout] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:364:1 [INFO] [stdout] | [INFO] [stdout] 364 | impl anchor_lang::AccountSerialize for TokenAccount {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:326:22 [INFO] [stdout] | [INFO] [stdout] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | impl anchor_lang::AccountDeserialize for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:401:6 [INFO] [stdout] | [INFO] [stdout] 401 | ) -> CpiContext<'a, 'b, 'c, 'info, SetAuthority<'info>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountInfos<'info>` is not satisfied [INFO] [stdout] --> src/lib.rs:401:6 [INFO] [stdout] | [INFO] [stdout] 401 | ) -> CpiContext<'a, 'b, 'c, 'info, SetAuthority<'info>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'info>` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `freeze_authority` on type `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` [INFO] [stdout] --> src/lib.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | ctx.accounts.token_mint.freeze_authority.is_none(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | vipers::validate_derived_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | ctx.accounts.proxy_mint_authority.key, [INFO] [stdout] | ------------------------------------- expected `Pubkey`, found `__Pubkey` [INFO] [stdout] 79 | ctx.program_id, [INFO] [stdout] | -------------- expected `Pubkey`, found `__Pubkey` [INFO] [stdout] | [INFO] [stdout] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stdout] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Pubkey` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stdout] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Pubkey` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/vipers-2.0.6/src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn validate_derived_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:88:42 [INFO] [stdout] | [INFO] [stdout] 88 | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef>` or `_: ToAccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 87 | | &ctx.accounts.mint_authority, [INFO] [stdout] 88 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 89 | | &ctx.accounts.token_program, [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 87 | | &ctx.accounts.mint_authority, [INFO] [stdout] 88 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 89 | | &ctx.accounts.token_program, [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:94:22 [INFO] [stdout] | [INFO] [stdout] 94 | Some(proxy_mint_authority), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `Pubkey`, found `__Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stdout] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Pubkey` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `__Pubkey` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | Some(proxy_mint_authority), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/option.rs:599:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 91 | token::set_authority( [INFO] [stdout] | -------------------- arguments to this function are incorrect [INFO] [stdout] 92 | cpi_ctx, [INFO] [stdout] | ^^^^^^^ expected `CpiContext<'_, '_, '_, '_, ...>`, found a different `CpiContext<'_, '_, '_, '_, ...>` [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `anchor_lang` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `anchor_lang::context::CpiContext` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/context.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `anchor_lang::context::CpiContext` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn set_authority<'a, 'b, 'c, 'info>( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> src/lib.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 91 | / token::set_authority( [INFO] [stdout] 92 | | cpi_ctx, [INFO] [stdout] 93 | | spl_token::instruction::AuthorityType::MintTokens, [INFO] [stdout] 94 | | Some(proxy_mint_authority), [INFO] [stdout] 95 | | )?; [INFO] [stdout] | | -^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | |_____________| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:103:54 [INFO] [stdout] | [INFO] [stdout] 103 | token_mint: *ctx.accounts.token_mint.to_account_info().key, [INFO] [stdout] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef>` or `_: ToAccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `MinterAddBumps` in the current scope [INFO] [stdout] --> src/lib.rs:133:58 [INFO] [stdout] | [INFO] [stdout] 133 | minter_info.__nonce = *unwrap_int!(ctx.bumps.get("minter_info")); [INFO] [stdout] | ----------^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `MinterAddBumps::get("minter_info")` [INFO] [stdout] ... [INFO] [stdout] 247 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.2.2/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::__private::ZeroCopyAccessor` [INFO] [stdout] candidate #4: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] candidate #5: `bitmaps::types::BitOps` [INFO] [stdout] candidate #6: `spl_token::solana_program::account_info::Account` [INFO] [stdout] candidate #7: `spl_token::solana_program::sysvar::Sysvar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `supply` on type `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` [INFO] [stdout] --> src/lib.rs:158:66 [INFO] [stdout] | [INFO] [stdout] 158 | let new_supply = unwrap_int!(ctx.accounts.token_mint.supply.checked_add(amount),); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:167:51 [INFO] [stdout] | [INFO] [stdout] 167 | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef>` or `_: ToAccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, TokenAccount>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:168:50 [INFO] [stdout] | [INFO] [stdout] 168 | to: ctx.accounts.destination.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method cannot be called on `anchor_lang::prelude::Account<'_, TokenAccount>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef>` or `_: ToAccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_lang::prelude::Account<'_, TokenAccount>: AsRef<__AccountInfo<'_>>` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'_, TokenAccount>: anchor_lang::ToAccountInfo<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 169 | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountInfo<'_>`, found `__AccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: `__AccountInfo<'_>` and `AccountInfo<'_>` have similar names, but are actually distinct types [INFO] [stdout] note: `__AccountInfo<'_>` is defined in crate `solana_account_info` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-account-info-2.3.0/src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `AccountInfo<'_>` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/account_info.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stdout] | --------------------------- required by a bound introduced by this call [INFO] [stdout] 165 | ctx.accounts.token_program.to_account_info(), [INFO] [stdout] 166 | / token::MintTo { [INFO] [stdout] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 168 | | to: ctx.accounts.destination.to_account_info(), [INFO] [stdout] 169 | | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stdout] 170 | | }, [INFO] [stdout] | |_________________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct MintTo<'info> { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn new_with_signer( [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:164:27 [INFO] [stdout] | [INFO] [stdout] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct MintTo<'info> { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:166:17 [INFO] [stdout] | [INFO] [stdout] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stdout] | --------------------------- required by a bound introduced by this call [INFO] [stdout] 165 | ctx.accounts.token_program.to_account_info(), [INFO] [stdout] 166 | / token::MintTo { [INFO] [stdout] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 168 | | to: ctx.accounts.destination.to_account_info(), [INFO] [stdout] 169 | | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stdout] 170 | | }, [INFO] [stdout] | |_________________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct MintTo<'info> { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn new_with_signer( [INFO] [stdout] | --------------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:164:27 [INFO] [stdout] | [INFO] [stdout] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 165 | | ctx.accounts.token_program.to_account_info(), [INFO] [stdout] 166 | | token::MintTo { [INFO] [stdout] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 171 | | proxy_signer, [INFO] [stdout] 172 | | ); [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct MintTo<'info> { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:164:27 [INFO] [stdout] | [INFO] [stdout] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 165 | | ctx.accounts.token_program.to_account_info(), [INFO] [stdout] 166 | | token::MintTo { [INFO] [stdout] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 171 | | proxy_signer, [INFO] [stdout] 172 | | ); [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct MintTo<'info> { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:173:28 [INFO] [stdout] | [INFO] [stdout] 173 | token::mint_to(cpi_ctx, amount)?; [INFO] [stdout] | -------------- ^^^^^^^ expected `CpiContext<'_, '_, '_, '_, MintTo<'_>>`, found a different `CpiContext<'_, '_, '_, '_, MintTo<'_>>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `anchor_lang` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `anchor_lang::context::CpiContext` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/context.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `anchor_lang::context::CpiContext` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn mint_to<'a, 'b, 'c, 'info>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> src/lib.rs:173:44 [INFO] [stdout] | [INFO] [stdout] 173 | token::mint_to(cpi_ctx, amount)?; [INFO] [stdout] | -------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:191:42 [INFO] [stdout] | [INFO] [stdout] 191 | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef>` or `_: ToAccountInfo<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `with_signer` exists for struct `anchor_lang::context::CpiContext<'_, '_, '_, '_, anchor_spl::token::SetAuthority<'_>>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:194:14 [INFO] [stdout] | [INFO] [stdout] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stdout] | ___________________________- [INFO] [stdout] 190 | | &proxy_mint_authority, [INFO] [stdout] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 192 | | &ctx.accounts.token_program, [INFO] [stdout] 193 | | ) [INFO] [stdout] 194 | | .with_signer(proxy_signer); [INFO] [stdout] | | -^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ doesn't satisfy `_: ToAccountInfos<'_>` or `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` [INFO] [stdout] `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:189:27 [INFO] [stdout] | [INFO] [stdout] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 190 | | &proxy_mint_authority, [INFO] [stdout] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 192 | | &ctx.accounts.token_program, [INFO] [stdout] 193 | | ) [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:189:27 [INFO] [stdout] | [INFO] [stdout] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 190 | | &proxy_mint_authority, [INFO] [stdout] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stdout] 192 | | &ctx.accounts.token_program, [INFO] [stdout] 193 | | ) [INFO] [stdout] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | Some(new_authority), [INFO] [stdout] | ---- ^^^^^^^^^^^^^ expected `Pubkey`, found `__Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stdout] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `Pubkey` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: the type constructed contains `__Pubkey` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | Some(new_authority), [INFO] [stdout] | ^^^^^-------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/option.rs:599:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> src/lib.rs:200:14 [INFO] [stdout] | [INFO] [stdout] 196 | / token::set_authority( [INFO] [stdout] 197 | | cpi_ctx, [INFO] [stdout] 198 | | spl_token::instruction::AuthorityType::MintTokens, [INFO] [stdout] 199 | | Some(new_authority), [INFO] [stdout] 200 | | )?; [INFO] [stdout] | | -^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | |_____________| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` to implement `anchor_lang::Accounts<'_, InitializeBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Token: Id` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `Id` is not implemented for `Token` [INFO] [stdout] | [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 366 | pub trait Id { [INFO] [stdout] | ^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:412:1 [INFO] [stdout] | [INFO] [stdout] 412 | pub struct Token; [INFO] [stdout] | ---------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Program<'_, Token>` to implement `anchor_lang::Accounts<'_, InitializeBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::AccountsExit<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` to implement `anchor_lang::Accounts<'_, SetMintAuthorityBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Token: Id` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `Id` is not implemented for `Token` [INFO] [stdout] | [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 366 | pub trait Id { [INFO] [stdout] | ^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:412:1 [INFO] [stdout] | [INFO] [stdout] 412 | pub struct Token; [INFO] [stdout] | ---------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Program<'_, Token>` to implement `anchor_lang::Accounts<'_, SetMintAuthorityBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::AccountsExit<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:364:1 [INFO] [stdout] | [INFO] [stdout] 364 | impl anchor_lang::AccountSerialize for TokenAccount {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | impl anchor_lang::AccountDeserialize for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` to implement `anchor_lang::Accounts<'_, PerformMintBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 366 | impl anchor_lang::Owner for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, TokenAccount>` to implement `anchor_lang::Accounts<'_, PerformMintBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Token: Id` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `Id` is not implemented for `Token` [INFO] [stdout] | [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 366 | pub trait Id { [INFO] [stdout] | ^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:412:1 [INFO] [stdout] | [INFO] [stdout] 412 | pub struct Token; [INFO] [stdout] | ---------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Program<'_, Token>` to implement `anchor_lang::Accounts<'_, PerformMintBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:322:9 [INFO] [stdout] | [INFO] [stdout] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stdout] | ^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:364:1 [INFO] [stdout] | [INFO] [stdout] 364 | impl anchor_lang::AccountSerialize for TokenAccount {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stdout] | ^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | impl anchor_lang::AccountDeserialize for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, TokenAccount>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called on `anchor_lang::prelude::Account<'info, TokenAccount>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- doesn't satisfy `TokenAccount: anchor_lang::AccountDeserialize` or `TokenAccount: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TokenAccount: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, TokenAccount>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `TokenAccount: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, TokenAccount>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- doesn't satisfy `_: AccountDeserialize` or `_: AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, TokenAccount>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called on `anchor_lang::prelude::Account<'info, TokenAccount>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- doesn't satisfy `TokenAccount: anchor_lang::AccountDeserialize` or `TokenAccount: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TokenAccount: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, TokenAccount>: anchor_lang::ToAccountMetas` [INFO] [stdout] `TokenAccount: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, TokenAccount>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:397:1 [INFO] [stdout] | [INFO] [stdout] 397 | impl anchor_lang::Owner for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` to implement `anchor_lang::AccountsExit<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:364:1 [INFO] [stdout] | [INFO] [stdout] 364 | impl anchor_lang::AccountSerialize for TokenAccount {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, TokenAccount>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | impl anchor_lang::AccountDeserialize for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, TokenAccount>` to implement `anchor_lang::ToAccountMetas` [INFO] [stdout] note: required by a bound in `anchor_lang::AccountsExit::exit` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `AccountsExit::exit` [INFO] [stdout] 138 | /// `program_id` is the currently executing program. [INFO] [stdout] 139 | fn exit(&self, _program_id: &Pubkey) -> Result<()> { [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenAccount: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> src/lib.rs:311:10 [INFO] [stdout] | [INFO] [stdout] 311 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `TokenAccount` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 366 | impl anchor_lang::Owner for TokenAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:338:1 [INFO] [stdout] | [INFO] [stdout] 338 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stdout] | [INFO] [stdout] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stdout] | ----------------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'info, TokenAccount>` to implement `anchor_lang::AccountsExit<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_lang::prelude::UncheckedAccount<'info>: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | assert_keys_eq!(self.proxy_mint_authority, PROXY_MINT_AUTHORITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `anchor_lang::prelude::UncheckedAccount<'info>` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `__Pubkey: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | assert_keys_eq!(self.proxy_mint_authority, PROXY_MINT_AUTHORITY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `__Pubkey` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `__Pubkey: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | assert_keys_eq!(self.minter_info.minter, self.minter, Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `__Pubkey` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_lang::prelude::Signer<'info>: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | assert_keys_eq!(self.minter_info.minter, self.minter, Unauthorized); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `anchor_lang::prelude::Signer<'info>` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `__Pubkey: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | assert_keys_eq!(state.token_mint, self.token_mint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `__Pubkey` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>: AsKeyRef` is not satisfied [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | assert_keys_eq!(state.token_mint, self.token_mint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the trait `AsKeyRef` is not implemented for `anchor_lang::prelude::Account<'info, anchor_spl::token::Mint>` [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsKeyRef`: [INFO] [stdout] Box> [INFO] [stdout] anchor_lang::accounts::account::Account<'info, T> [INFO] [stdout] anchor_lang::accounts::account_loader::AccountLoader<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_account::CpiAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::cpi_state::CpiState<'info, T> [INFO] [stdout] anchor_lang::accounts::loader::Loader<'info, T> [INFO] [stdout] anchor_lang::accounts::program_account::ProgramAccount<'info, T> [INFO] [stdout] anchor_lang::accounts::signer::Signer<'info> [INFO] [stdout] and 6 others [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | assert_keys_eq!(state.token_mint, self.token_mint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stdout] | [INFO] [stdout] 246 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> src/lib.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | assert_keys_eq!(state.token_mint, self.token_mint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stdout] | [INFO] [stdout] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 257 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stdout] | [INFO] [stdout] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stdout] | --------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the macro `$crate::assert_keys_eq` which comes from the expansion of the macro `assert_keys_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:403:26 [INFO] [stdout] | [INFO] [stdout] 403 | account_or_mint: mint.clone(), [INFO] [stdout] | ^^^^^^^^^^^^ expected `AccountInfo<'_>`, found `__AccountInfo<'info>` [INFO] [stdout] | [INFO] [stdout] = note: `__AccountInfo<'info>` and `AccountInfo<'_>` have similar names, but are actually distinct types [INFO] [stdout] note: `__AccountInfo<'info>` is defined in crate `solana_account_info` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-account-info-2.3.0/src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `AccountInfo<'_>` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/account_info.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:404:28 [INFO] [stdout] | [INFO] [stdout] 404 | current_authority: current_authority.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountInfo<'_>`, found `__AccountInfo<'info>` [INFO] [stdout] | [INFO] [stdout] = note: `__AccountInfo<'info>` and `AccountInfo<'_>` have similar names, but are actually distinct types [INFO] [stdout] note: `__AccountInfo<'info>` is defined in crate `solana_account_info` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-account-info-2.3.0/src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `AccountInfo<'_>` is defined in crate `solana_program` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/account_info.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AccountInfo<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | CpiContext::new(cpi_program, cpi_accounts) [INFO] [stdout] | --------------- ^^^^^^^^^^^^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] 184 | { [INFO] [stdout] 185 | pub fn new(program: AccountInfo<'info>, accounts: T) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 407 | CpiContext::new(cpi_program, cpi_accounts) [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:407:34 [INFO] [stdout] | [INFO] [stdout] 407 | CpiContext::new(cpi_program, cpi_accounts) [INFO] [stdout] | --------------- ^^^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] 184 | { [INFO] [stdout] 185 | pub fn new(program: AccountInfo<'info>, accounts: T) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stdout] --> src/lib.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 407 | CpiContext::new(cpi_program, cpi_accounts) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait ToAccountMetas { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:407:5 [INFO] [stdout] | [INFO] [stdout] 407 | CpiContext::new(cpi_program, cpi_accounts) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stdout] | [INFO] [stdout] 338 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub trait ToAccountInfos<'info> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_lang::solana_program; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stdout] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stdout] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct SetAuthority<'info> { [INFO] [stdout] | ------------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stdout] | ---------- required by a bound in this struct [INFO] [stdout] 172 | where [INFO] [stdout] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mint-proxy` (lib) due to 104 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "87cd80013d5d28f49028174d7a63c85566da3fa4c702f7f1ae7fa2048b008a60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cd80013d5d28f49028174d7a63c85566da3fa4c702f7f1ae7fa2048b008a60", kill_on_drop: false }` [INFO] [stdout] 87cd80013d5d28f49028174d7a63c85566da3fa4c702f7f1ae7fa2048b008a60