Skip to content

Commit

Permalink
put owner with public view functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Jun 3, 2024
1 parent 79e222b commit 4485f7b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contracts/beacon/Voucher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4485f7b

Please sign in to comment.