File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2656,6 +2656,11 @@ impl Bank {
2656
2656
Pubkey::new_from_array(pythnet::ACCUMULATOR_SEQUENCE_ADDR),
2657
2657
)?;
2658
2658
2659
+ let accumulator_emitter_addr = self.env_pubkey_or(
2660
+ "ACCUMULATOR_EMITTER_ADDR",
2661
+ Pubkey::new_from_array(ACCUMULATOR_EMITTER_ADDRESS),
2662
+ )?;
2663
+
2659
2664
// Wormhole uses a Sequence account that is incremented each time a message is posted. As
2660
2665
// we aren't calling Wormhole we need to bump this ourselves. If it doesn't exist, we just
2661
2666
// create it instead.
@@ -2681,7 +2686,7 @@ impl Bank {
2681
2686
nonce: 0,
2682
2687
sequence: sequence.sequence,
2683
2688
emitter_chain: 26,
2684
- emitter_address: ACCUMULATOR_EMITTER_ADDRESS ,
2689
+ emitter_address: accumulator_emitter_addr.to_bytes() ,
2685
2690
payload: acc.serialize(self.slot(), ACCUMULATOR_RING_SIZE),
2686
2691
},
2687
2692
};
You can’t perform that action at this time.
0 commit comments