We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0886c commit ae38e3aCopy full SHA for ae38e3a
target_chains/stylus/contracts/pyth-receiver/src/lib.rs
@@ -296,6 +296,8 @@ impl PythReceiver {
296
self.get_current_timestamp().saturating_sub(publish_time.to::<u64>()) <= max_age
297
}
298
299
+ // Stylus doesn't provide a way to mock up the testing timestamp
300
+ // so at the moment I'm using the testing trait to let me test old timestamps
301
fn get_current_timestamp(&self) -> u64 {
302
#[cfg(test)]
303
{
0 commit comments