Closed itegulov closed 3 days ago
We need to implement three time-related API endpoints:
#[rpc(name = "anvil_setTime")] fn set_time(&self, timestamp: Numeric) -> RpcResult<i128>; #[rpc(name = "anvil_increaseTime")] fn increase_time(&self, seconds: Numeric) -> RpcResult<u64>; #[rpc(name = "anvil_setNextBlockTimestamp")] fn set_next_block_timestamp(&self, timestamp: Numeric) -> RpcResult<()>;
The implementations should be almost identical to the matching evm_ ones.
evm_
We need to implement three time-related API endpoints:
The implementations should be almost identical to the matching
evm_
ones.