Function ibc_testkit::utils::year_2023

source ยท
pub fn year_2023() -> Timestamp
Expand description

Returns a Timestamp representation of beginning of year 2023.

This is introduced to initialize StoreGenericTestContexts with the same latest timestamp by default. If two StoreGenericTestContext are initialized using Time::now(), second one will have a greater timestamp than the first one. So, the latest header of the second context can not be submitted to first one. We can still set a custom timestamp via TestContextConfig.