From 4485f7ba0b50c8395e1656eae3076320a8447ee3 Mon Sep 17 00:00:00 2001 From: Gabriel Fournier Date: Mon, 3 Jun 2024 17:34:54 +0200 Subject: [PATCH] put owner with public view functions --- contracts/beacon/Voucher.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/beacon/Voucher.sol b/contracts/beacon/Voucher.sol index 1516b21..dfccfa9 100644 --- a/contracts/beacon/Voucher.sol +++ b/contracts/beacon/Voucher.sol @@ -246,14 +246,6 @@ contract Voucher is Initializable, IVoucher { emit TaskClaimedWithVoucher(taskId); } - /** - * @dev Returns the address of the current owner. - */ - function owner() public view returns (address) { - VoucherStorage storage $ = _getVoucherStorage(); - return $._owner; - } - /** * Retrieve the expiration timestamp of the voucher. * @return expirationTimestamp The expiration timestamp. @@ -298,6 +290,14 @@ contract Voucher is Initializable, IVoucher { return $._sponsoredAmounts[dealId]; } + /** + * @dev Returns the address of the current owner. + */ + function owner() public view returns (address) { + VoucherStorage storage $ = _getVoucherStorage(); + return $._owner; + } + /** * Retrieve the address of the voucher hub associated with the voucher. * @return voucherHubAddress The address of the voucher hub.