From a641a3249ac838dce71835fbbbf0d0f96a965ac5 Mon Sep 17 00:00:00 2001 From: Zied Guesmi <26070035+zguesmi@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:17:46 +0200 Subject: [PATCH] Update contracts/beacon/Voucher.sol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jérémy James Toussaint <33313130+jeremyjams@users.noreply.github.com> --- contracts/beacon/Voucher.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/beacon/Voucher.sol b/contracts/beacon/Voucher.sol index e4e3c0f..b452036 100644 --- a/contracts/beacon/Voucher.sol +++ b/contracts/beacon/Voucher.sol @@ -68,7 +68,7 @@ contract Voucher is Initializable, IVoucher { } modifier onlyExpired() { - require(getExpiration() < block.timestamp, "Voucher: voucher is not expired"); + require(getExpiration() <= block.timestamp, "Voucher: voucher is not expired"); _; }