airdrop key bug 2
Opened this issue · 0 comments
➜ Turbin3_solana_enrollment_rust git:(main) cargo test airdrop
Compiling turbin3_solana_enrollment v0.1.0 (/Users/dante/Desktop/reacthreejs/Turbin3_solana_enrollment_rust)
error[E0433]: failed to resolve: use of undeclared type Message
--> src/lib.rs:112:23
|
112 | let message = Message::new_with_blockhash(
| ^^^^^^^ use of undeclared type Message
|
help: consider importing one of these items
|
21 + use solana_program::message::Message;
|
21 + use solana_program::message::v0::Message;
|
21 + use solana_sdk::message::Message;
|
21 + use solana_sdk::message::v0::Message;
|
error[E0433]: failed to resolve: use of undeclared type WbaPrereqProgram
--> src/lib.rs:143:22
|
143 | let prereq = WbaPrereqProgram::derive_program_address(&[
| ^^^^^^^^^^^^^^^^ use of undeclared type WbaPrereqProgram
|
help: consider importing this struct
|
21 + use crate::programs::wba_prereq::WbaPrereqProgram;
|
error[E0422]: cannot find struct, variant or union type CompleteArgs
in this scope
--> src/lib.rs:147:20
|
147 | let args = CompleteArgs {
| ^^^^^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
21 + use crate::programs::wba_prereq::CompleteArgs;
|
error[E0433]: failed to resolve: use of undeclared type WbaPrereqProgram
--> src/lib.rs:155:27
|
155 | let transaction = WbaPrereqProgram::complete(
| ^^^^^^^^^^^^^^^^ use of undeclared type WbaPrereqProgram
|
help: consider importing this struct
|
21 + use crate::programs::wba_prereq::WbaPrereqProgram;
|
error[E0433]: failed to resolve: use of undeclared crate or module system_program
--> src/lib.rs:156:43
|
156 | &[&signer.pubkey(), &prereq, &system_program::id()],
| ^^^^^^^^^^^^^^ use of undeclared crate or module system_program
|
help: consider importing one of these items
|
21 + use solana_program::system_program;
|
21 + use solana_sdk::system_program;
|
warning: unused imports: decode
, encode
--> src/lib.rs:1:14
|
1 | use base64::{decode, encode};
| ^^^^^^ ^^^^^^
|
= note: #[warn(unused_imports)]
on by default
error[E0277]: KeypairJson
doesn't implement Debug
--> src/lib.rs:43:26
|
43 | println!("{:?}", keypair_json);
| ^^^^^^^^^^^^ KeypairJson
cannot be formatted using {:?}
|
= help: the trait Debug
is not implemented for KeypairJson
= note: add #[derive(Debug)]
to KeypairJson
or manually impl Debug for KeypairJson
= note: this error originates in the macro $crate::format_args_nl
which comes from the expansion of the macro println
(in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating KeypairJson
with #[derive(Debug)]
|
15 + #[derive(Debug)]
16 | struct KeypairJson {
|
Some errors have detailed explanations: E0277, E0422, E0433.
For more information about an error, try rustc --explain E0277
.
warning: turbin3_solana_enrollment
(lib test) generated 1 warning
error: could not compile turbin3_solana_enrollment
(lib test) due to 6 previous errors; 1 warning emitted
➜ Turbin3_solana_enrollment_rust git:(main) ✗