no method named clone found for struct solana_sdk::signature::Keypair in the current scope
#42
Replies: 6 comments
-
|
I updated code, then again this error : error[E0308]: mismatched types error[E0308]: mismatched types error[E0308]: mismatched types |
Beta Was this translation helpful? Give feedback.
-
|
error[E0599]: no method named error[E0599]: no method named error[E0599]: no method named |
Beta Was this translation helpful? Give feedback.
-
|
it is still arising the following up errors. |
Beta Was this translation helpful? Give feedback.
-
|
Follow-up errors are still occurring. |
Beta Was this translation helpful? Give feedback.
-
|
I can see that in bot_client/src/core/token.rs, there's an example of how to create a new Keypair from an existing one using Keypair::from_bytes(&keypair.to_bytes()). This is the correct way to "clone" a Keypair since it doesn't implement the Clone trait. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions