Add a constructor to generate random pubkeys
This commit is contained in:
@@ -339,7 +339,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_drone_build_airdrop_transaction() {
|
||||
let to = Keypair::new().pubkey();
|
||||
let to = Pubkey::new_rand();
|
||||
let blockhash = Hash::default();
|
||||
let request = DroneRequest::GetAirdrop {
|
||||
lamports: 2,
|
||||
@@ -377,7 +377,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_process_drone_request() {
|
||||
let to = Keypair::new().pubkey();
|
||||
let to = Pubkey::new_rand();
|
||||
let blockhash = Hash::new(&to.as_ref());
|
||||
let lamports = 50;
|
||||
let req = DroneRequest::GetAirdrop {
|
||||
|
Reference in New Issue
Block a user