|
|
@@ -7,6 +7,8 @@ mod test {
|
|
|
use motsu::prelude::*;
|
|
|
use pythnet_sdk::wire::v1::{AccumulatorUpdateData, Proof};
|
|
|
use wormhole_contract::WormholeContract;
|
|
|
+ use mock_instant::global::MockClock;
|
|
|
+ use std::time::Duration;
|
|
|
const TEST_PRICE_ID: [u8; 32] = [
|
|
|
0xe6, 0x2d, 0xf6, 0xc8, 0xb4, 0xa8, 0x5f, 0xe1, 0xa6, 0x7d, 0xb4, 0x4d, 0xc1, 0x2d, 0xe5,
|
|
|
0xdb, 0x33, 0x0f, 0x7a, 0xc6, 0x6b, 0x72, 0xdc, 0x65, 0x8a, 0xfe, 0xdf, 0x0f, 0x4a, 0x41,
|
|
|
@@ -191,6 +193,7 @@ mod test {
|
|
|
wormhole_contract: Contract<WormholeContract>,
|
|
|
alice: Address,
|
|
|
) {
|
|
|
+ MockClock::set_time(Duration::from_secs(1761573860));
|
|
|
pyth_wormhole_init(&pyth_contract, &wormhole_contract, &alice);
|
|
|
|
|
|
let random_id: [u8; 32] = [
|
|
|
@@ -215,6 +218,7 @@ mod test {
|
|
|
wormhole_contract: Contract<WormholeContract>,
|
|
|
alice: Address,
|
|
|
) {
|
|
|
+ MockClock::set_time(Duration::from_secs(1761573860));
|
|
|
pyth_wormhole_init(&pyth_contract, &wormhole_contract, &alice);
|
|
|
|
|
|
let update_data = good_update2();
|
|
|
@@ -240,6 +244,7 @@ mod test {
|
|
|
wormhole_contract: Contract<WormholeContract>,
|
|
|
alice: Address,
|
|
|
) {
|
|
|
+ MockClock::set_time(Duration::from_secs(1761573860));
|
|
|
pyth_wormhole_init(&pyth_contract, &wormhole_contract, &alice);
|
|
|
|
|
|
let update_data = good_update2();
|