Skip to content

Commit 51a8099

Browse files
committed
clean
1 parent ef0ad5a commit 51a8099

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

runtime/src/bank/pyth_accumulator.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ fn post_accumulator_attestation(
373373
}
374374

375375
pub fn update_v2(bank: &Bank) -> std::result::Result<(), AccumulatorUpdateErrorV1> {
376-
let accounts: Vec<(Pubkey, AccountSharedData)> = bank
376+
let accounts = bank
377377
.get_program_accounts(&ORACLE_PUBKEY, &ScanConfig::new(true))
378378
.map_err(AccumulatorUpdateErrorV1::GetProgramAccounts)?;
379379

@@ -406,8 +406,6 @@ pub fn update_v2(bank: &Bank) -> std::result::Result<(), AccumulatorUpdateErrorV
406406
}
407407
}
408408

409-
410-
411409
update_v1(bank, &v2_messages, any_v1_aggregations)
412410
}
413411

0 commit comments

Comments
 (0)