File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2514,6 +2514,7 @@ impl Bank {
2514
2514
byteorder::ReadBytesExt,
2515
2515
pythnet_sdk::{
2516
2516
accumulators::{merkle::MerkleAccumulator, Accumulator},
2517
+ hashers::keccak256_160::Keccak160,
2517
2518
pythnet::PYTH_PID,
2518
2519
MESSAGE_BUFFER_PID,
2519
2520
},
@@ -2603,7 +2604,7 @@ impl Bank {
2603
2604
// Generate a Message owned by Wormhole to be sent cross-chain. This short-circuits the
2604
2605
// Wormhole message generation code that would normally be called, but the Guardian
2605
2606
// set filters our messages so this does not pose a security risk.
2606
- if let Some(accumulator) = MerkleAccumulator::from_set(accounts) {
2607
+ if let Some(accumulator) = MerkleAccumulator::<Keccak160>:: from_set(accounts) {
2607
2608
self.post_accumulator_attestation(accumulator, ring_index)?;
2608
2609
}
2609
2610
@@ -2617,7 +2618,9 @@ impl Bank {
2617
2618
/// TODO: Safe integer conversion checks if any are missed.
2618
2619
fn post_accumulator_attestation(
2619
2620
&self,
2620
- acc: pythnet_sdk::accumulators::merkle::MerkleAccumulator,
2621
+ acc: pythnet_sdk::accumulators::merkle::MerkleAccumulator<
2622
+ pythnet_sdk::hashers::keccak256_160::Keccak160,
2623
+ >,
2621
2624
ring_index: u32,
2622
2625
) -> std::result::Result<(), AccumulatorUpdateError> {
2623
2626
use {
You can’t perform that action at this time.
0 commit comments