pass Pubkeys as refs, copy only where values needed (#3213)
* pass Pubkeys as refs, copy only where values needed * Pubkey is pervasive * fixup
This commit is contained in:
@ -135,7 +135,7 @@ impl Drone {
|
||||
let mut transaction = Transaction::new(
|
||||
&self.mint_keypair,
|
||||
&[to],
|
||||
system_program::id(),
|
||||
&system_program::id(),
|
||||
&create_instruction,
|
||||
blockhash,
|
||||
0, /*fee*/
|
||||
@ -411,7 +411,7 @@ mod tests {
|
||||
let mut expected_tx = Transaction::new(
|
||||
&keypair,
|
||||
&[to],
|
||||
system_program::id(),
|
||||
&system_program::id(),
|
||||
&expected_instruction,
|
||||
blockhash,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user