mirror of https://github.com/nucypher/nucypher.git
parent
0700a126dd
commit
85a65ad4c5
|
@ -1 +1 @@
|
|||
`TimeCondition` now uses the timestamp of the latest block for evaluating conditions, instead of system time. System time condition evaluation is no longer supported.
|
||||
``TimeCondition`` now uses the timestamp of the latest block for evaluating conditions, instead of system time. System time condition evaluation is no longer supported.
|
||||
|
|
|
@ -52,5 +52,6 @@ class TimeCondition(RPCCondition):
|
|||
|
||||
def _execute_call(self, parameters: List[Any]) -> Any:
|
||||
"""Execute onchain read and return result."""
|
||||
# TODO may need to rethink as part of #3051 (multicall work).
|
||||
latest_block = self.w3.eth.get_block("latest")
|
||||
return latest_block.timestamp
|
||||
|
|
Loading…
Reference in New Issue