Purge Default::default()
This commit is contained in:
@ -232,13 +232,13 @@ mod tests {
|
||||
fn test_serialize_claim() {
|
||||
let expr = BudgetExpr::Pay(Payment {
|
||||
tokens: 0,
|
||||
to: Default::default(),
|
||||
to: Pubkey::default(),
|
||||
});
|
||||
let instruction = Instruction::NewBudget(expr);
|
||||
let instructions = vec![transaction::Instruction::new(0, &instruction, vec![])];
|
||||
let claim0 = Transaction {
|
||||
account_keys: vec![],
|
||||
last_id: Default::default(),
|
||||
last_id: Hash::default(),
|
||||
signatures: vec![],
|
||||
program_ids: vec![],
|
||||
instructions,
|
||||
|
@ -133,7 +133,7 @@ mod tests {
|
||||
let t2 = Keypair::new();
|
||||
let moves = vec![(t1.pubkey(), 1), (t2.pubkey(), 2)];
|
||||
|
||||
let tx = SystemTransaction::new_move_many(&from, &moves, Default::default(), 0);
|
||||
let tx = SystemTransaction::new_move_many(&from, &moves, Hash::default(), 0);
|
||||
assert_eq!(tx.account_keys[0], from.pubkey());
|
||||
assert_eq!(tx.account_keys[1], t1.pubkey());
|
||||
assert_eq!(tx.account_keys[2], t2.pubkey());
|
||||
|
@ -412,7 +412,7 @@ mod tests {
|
||||
let tx = Transaction::new_with_instructions(
|
||||
&[&key],
|
||||
&[key1, key2],
|
||||
Default::default(),
|
||||
Hash::default(),
|
||||
0,
|
||||
vec![prog1, prog2],
|
||||
instructions,
|
||||
@ -447,7 +447,7 @@ mod tests {
|
||||
let tx = Transaction::new_with_instructions(
|
||||
&[&key],
|
||||
&[],
|
||||
Default::default(),
|
||||
Hash::default(),
|
||||
0,
|
||||
vec![],
|
||||
instructions,
|
||||
@ -461,12 +461,12 @@ mod tests {
|
||||
let tx = Transaction::new_with_instructions(
|
||||
&[&key],
|
||||
&[],
|
||||
Default::default(),
|
||||
Hash::default(),
|
||||
0,
|
||||
vec![Default::default()],
|
||||
vec![Pubkey::default()],
|
||||
instructions,
|
||||
);
|
||||
assert_eq!(*tx.program_id(0), Default::default());
|
||||
assert_eq!(*tx.program_id(0), Pubkey::default());
|
||||
assert!(!tx.verify_refs());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user