Skip to content

error: could not compile bolt-cli (lib) due to 57 previous errors #29

@Sytaserver

Description

@Sytaserver

ll@ll-VMware-Virtual-Platform:~$ cargo install bolt-cli
Updating crates.io index
Installing bolt-cli v0.2.4
Updating crates.io index
Resolving dependency graph...
Locking 664 packages to latest compatible versions
Adding anchor-cli v0.30.1 (available: v0.32.1)
Adding anchor-client v0.30.1 (available: v0.32.1)
Adding bolt-component v0.2.4 (available: v0.2.6)
Adding bolt-system v0.2.4 (available: v0.2.6)
Adding solana_rbpf v0.8.3 (available: v0.8.5)
Adding solang-parser v0.3.3 (available: v0.3.5)
Adding spl-memo v4.0.0 (available: v4.0.4)
Adding spl-token v4.0.0 (available: v4.0.3)
Adding subtle v2.4.1 (available: v2.6.1)
Adding syn v1.0.109 (available: v2.0.108)
Adding which v7.0.3 (available: v8.0.0)
Adding world v0.2.4 (available: v0.2.6)
Adding zeroize v1.3.0 (available: v1.8.2)
Compiling proc-macro2 v1.0.103
Compiling quote v1.0.41
Compiling unicode-ident v1.0.22
Compiling version_check v0.9.5
Compiling libc v0.2.177
Compiling typenum v1.19.0
Compiling cfg-if v1.0.4
..................
................
Compiling world v0.2.4
Compiling sysinfo v0.37.2
Compiling bolt-cli v0.2.4
error[E0308]: mismatched types
--> /home/ll/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bolt-cli-0.2.4/src/instructions.rs:39:34
|
39 | let program = client.program(ID)?;
| ------- ^^ expected Pubkey, found solana_pubkey::Pubkey
| |
| arguments to this method are incorrect
|
....................
....
error[E0308]: mismatched types
--> /home/ll/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bolt-cli-0.2.4/src/instructions.rs:41:79
|
41 | ..._) = Pubkey::find_program_address(&[Registry::seed()], &ID);
| ---------------------------- ^^^ expected Pubkey, found solana_pubkey::Pubkey
| |
| arguments to this function are incorrect

........................

error[E0308]: mismatched types
--> /home/ll/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bolt-cli-0.2.4/src/instructions.rs:220:17
|
220 | .signer(payer)
| ------ ^^^^^ expected &dyn Signer, found Keypair
| |
| arguments to this method are incorrect
|
= note: expected reference &dyn anchor_client::solana_sdk::signature::Signer
found struct anchor_client::solana_sdk::signature::Keypair
note: method defined here
--> /home/ll/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-client-0.30.1/src/lib.rs:597:12
|
597 | pub fn signer(mut self, signer: &'a dyn Signer) -> Self {
| ^^^^^^
help: consider borrowing here
|
220 | .signer(&payer)
| +

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try rustc --explain E0277.
error: could not compile bolt-cli (lib) due to 57 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile bolt-cli v0.2.4, intermediate artifacts can be found at /tmp/cargo-installj5Sgxq.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
ll@ll-VMware-Virtual-Platform:$ ^C
ll@ll-VMware-Virtual-Platform:
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions