Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E0425 #3

Open
virjilakrum opened this issue Sep 7, 2024 · 2 comments
Open

E0425 #3

virjilakrum opened this issue Sep 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@virjilakrum
Copy link
Member

solfhe-analyzer git:(main) ✗ cargo run
   Compiling solfhe-analyzer v0.1.0 (/Users/dante/Desktop/reacthreejs/solfhe-monorepo/solfhe-analyzer)
error[E0433]: failed to resolve: use of undeclared crate or module solana_transaction_status
   --> src/main.rs:188:57
    |
188 |     let transaction = client.get_transaction(signature, solana_transaction_status::UiTransactionEncoding::Json)?;
    |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module solana_transaction_status
warning: unused import: rent::Rent
  --> src/main.rs:26:5
   |
26 |     rent::Rent,
   |     ^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default
error[E0308]: mismatched types
    --> src/main.rs:188:46
     |
188  |     let transaction = client.get_transaction(signature, solana_transaction_status::UiTransactionEncoding::Json)?;
     |                              --------------- ^^^^^^^^^ expected &Signature, found &str
     |                              |
     |                              arguments to this method are incorrect
     |
     = note: expected reference &solana_sdk::signature::Signature
                found reference &str
note: method defined here
    --> /Users/dante/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-rpc-client-1.18.23/src/rpc_client.rs:2596:12
     |
2596 |     pub fn get_transaction(
     |            ^^^^^^^^^^^^^^^
error[E0308]: mismatched types
   --> src/main.rs:191:16
    |
191 |         if let Some(log_messages) = meta.log_messages {
    |                ^^^^^^^^^^^^^^^^^^   ----------------- this expression has type solana_transaction_status::option_serializer::OptionSerializer<Vec<std::string::String>>
    |                |
    |                expected OptionSerializer<Vec<String>>, found Option<_>
    |
    = note: expected enum solana_transaction_status::option_serializer::OptionSerializer<Vec<std::string::String>>
               found enum Option<_>
error[E0425]: cannot find function create_solana_account in this scope
   --> src/main.rs:210:20
    |
210 |     let account1 = create_solana_account();
    |                    ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function create_solana_account in this scope
   --> src/main.rs:211:20
    |
211 |     let account2 = create_solana_account();
    |                    ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
Some errors have detailed explanations: E0308, E0425, E0433.
For more information about an error, try rustc --explain E0308.
warning: solfhe-analyzer (bin "solfhe-analyzer") generated 1 warning
error: could not compile solfhe-analyzer (bin "solfhe-analyzer") due to 5 previous errors; 1 warning emitted
@virjilakrum virjilakrum added the bug Something isn't working label Sep 7, 2024
@virjilakrum virjilakrum self-assigned this Sep 7, 2024
@virjilakrum
Copy link
Member Author

  solfhe-analyzer git:(main) ✗ cargo run
   Compiling solfhe-analyzer v0.1.0 (/Users/dante/Desktop/reacthreejs/solfhe-monorepo/solfhe-analyzer)
error[E0432]: unresolved import `solana_transaction_status`
  --> src/main.rs:28:5
   |
28 | use solana_transaction_status::UiTransactionEncoding;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `solana_transaction_status`

error[E0308]: mismatched types
   --> src/main.rs:195:16
    |
195 |         if let Some(log_messages) = meta.log_messages {
    |                ^^^^^^^^^^^^^^^^^^   ----------------- this expression has type `solana_transaction_status::option_serializer::OptionSerializer<Vec<std::string::String>>`
    |                |
    |                expected `OptionSerializer<Vec<String>>`, found `Option<_>`
    |
    = note: expected enum `solana_transaction_status::option_serializer::OptionSerializer<Vec<std::string::String>>`
               found enum `Option<_>`

Some errors have detailed explanations: E0308, E0432.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `solfhe-analyzer` (bin "solfhe-analyzer") due to 2 previous errors

@virjilakrum
Copy link
Member Author

solfhe-analyzer git:(main) ✗ cargo build
   Compiling solfhe-analyzer v0.1.0 (/Users/dante/Desktop/reacthreejs/solfhe-monorepo/solfhe-analyzer)
error[E0308]: mismatched types
   --> src/main.rs:195:16
    |
195 |         if let Some(log_messages) = meta.log_messages {
    |                ^^^^^^^^^^^^^^^^^^   ----------------- this expression has type `OptionSerializer<Vec<std::string::String>>`
    |                |
    |                expected `OptionSerializer<Vec<String>>`, found `Option<_>`
    |
    = note: expected enum `OptionSerializer<Vec<std::string::String>>`
               found enum `Option<_>`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `solfhe-analyzer` (bin "solfhe-analyzer") due to 1 previous error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant