@@ -4,11 +4,11 @@ mod test {
4
4
use crate :: test_data:: * ;
5
5
use crate :: PythReceiver ;
6
6
use alloy_primitives:: { Address , U256 } ;
7
+ use mock_instant:: global:: MockClock ;
7
8
use motsu:: prelude:: * ;
8
9
use pythnet_sdk:: wire:: v1:: { AccumulatorUpdateData , Proof } ;
9
- use wormhole_contract:: WormholeContract ;
10
- use mock_instant:: global:: MockClock ;
11
10
use std:: time:: Duration ;
11
+ use wormhole_contract:: WormholeContract ;
12
12
const TEST_PRICE_ID : [ u8 ; 32 ] = [
13
13
0xe6 , 0x2d , 0xf6 , 0xc8 , 0xb4 , 0xa8 , 0x5f , 0xe1 , 0xa6 , 0x7d , 0xb4 , 0x4d , 0xc1 , 0x2d , 0xe5 ,
14
14
0xdb , 0x33 , 0x0f , 0x7a , 0xc6 , 0x6b , 0x72 , 0xdc , 0x65 , 0x8a , 0xfe , 0xdf , 0x0f , 0x4a , 0x41 ,
@@ -81,7 +81,6 @@ mod test {
81
81
let governance_chain_id = 1u16 ;
82
82
let governance_emitter_address = [ 3u8 ; 32 ] ;
83
83
let governance_initial_sequence = 0u64 ;
84
- let data = vec ! [ ] ;
85
84
86
85
pyth_contract. sender ( * alice) . initialize (
87
86
wormhole_contract. address ( ) ,
@@ -92,7 +91,6 @@ mod test {
92
91
governance_chain_id,
93
92
governance_emitter_address,
94
93
governance_initial_sequence,
95
- data,
96
94
) ;
97
95
}
98
96
@@ -193,7 +191,7 @@ mod test {
193
191
wormhole_contract : Contract < WormholeContract > ,
194
192
alice : Address ,
195
193
) {
196
- MockClock :: set_time ( Duration :: from_secs ( 1761573860 ) ) ;
194
+ MockClock :: set_time ( Duration :: from_secs ( 1761573860 ) ) ; // less than good_update2().timestamp + 1s
197
195
pyth_wormhole_init ( & pyth_contract, & wormhole_contract, & alice) ;
198
196
199
197
let random_id: [ u8 ; 32 ] = [
0 commit comments