Skip to content

Commit ae38e3a

Browse files
committed
clarifying comment
1 parent 2c0886c commit ae38e3a

File tree

1 file changed

+2
-0
lines changed
  • target_chains/stylus/contracts/pyth-receiver/src

1 file changed

+2
-0
lines changed

target_chains/stylus/contracts/pyth-receiver/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ impl PythReceiver {
296296
self.get_current_timestamp().saturating_sub(publish_time.to::<u64>()) <= max_age
297297
}
298298

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
299301
fn get_current_timestamp(&self) -> u64 {
300302
#[cfg(test)]
301303
{

0 commit comments

Comments
 (0)