From 42ac0120cf89d6b610430822f8a4de6cde9aa379 Mon Sep 17 00:00:00 2001 From: rharutyunyan Date: Tue, 14 Nov 2023 18:07:55 +0400 Subject: [PATCH] feat(timestamp): getter for block timestamp --- contracts/MultiCall.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contracts/MultiCall.sol b/contracts/MultiCall.sol index 4b4b795..153b1ec 100644 --- a/contracts/MultiCall.sol +++ b/contracts/MultiCall.sol @@ -73,4 +73,10 @@ contract MultiCall { function gasLeft() external view returns (uint256) { return gasleft(); } + + /// @notice Fetches the block timestamp. + /// @return result timestamp of the block. + function getCurrentBlockTimestamp() external view returns (uint256) { + return block.timestamp; + } }