Remove unused pubkey::Pubkey imports
This commit is contained in:
@ -310,7 +310,10 @@ mod tests {
|
||||
faucet_keypair.pubkey(),
|
||||
Account::new(10_000, 0, &Pubkey::default()),
|
||||
);
|
||||
config.add_account(solana_sdk::pubkey::new_rand(), Account::new(1, 0, &Pubkey::default()));
|
||||
config.add_account(
|
||||
solana_sdk::pubkey::new_rand(),
|
||||
Account::new(1, 0, &Pubkey::default()),
|
||||
);
|
||||
config.add_native_instruction_processor("hi".to_string(), solana_sdk::pubkey::new_rand());
|
||||
|
||||
assert_eq!(config.accounts.len(), 2);
|
||||
|
@ -301,7 +301,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_create_with_seed() {
|
||||
assert!(Pubkey::create_with_seed(&solana_sdk::pubkey::new_rand(), "☉", &solana_sdk::pubkey::new_rand()).is_ok());
|
||||
assert!(Pubkey::create_with_seed(
|
||||
&solana_sdk::pubkey::new_rand(),
|
||||
"☉",
|
||||
&solana_sdk::pubkey::new_rand()
|
||||
)
|
||||
.is_ok());
|
||||
assert_eq!(
|
||||
Pubkey::create_with_seed(
|
||||
&solana_sdk::pubkey::new_rand(),
|
||||
@ -337,7 +342,12 @@ mod tests {
|
||||
)
|
||||
.is_ok());
|
||||
|
||||
assert!(Pubkey::create_with_seed(&solana_sdk::pubkey::new_rand(), "", &solana_sdk::pubkey::new_rand(),).is_ok());
|
||||
assert!(Pubkey::create_with_seed(
|
||||
&solana_sdk::pubkey::new_rand(),
|
||||
"",
|
||||
&solana_sdk::pubkey::new_rand(),
|
||||
)
|
||||
.is_ok());
|
||||
|
||||
assert_eq!(
|
||||
Pubkey::create_with_seed(
|
||||
|
Reference in New Issue
Block a user