sp.now
is the right way to get the time a call is being made.
In the test scenario system, the time is set to sp.timestamp(0)
by default, see How to test timestamp or other context on onchain views to set another value.
sp.now
is the right way to get the time a call is being made.
In the test scenario system, the time is set to sp.timestamp(0)
by default, see How to test timestamp or other context on onchain views to set another value.