Skip to content

Commit

Permalink
cleaning so todos
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed May 29, 2024
1 parent f37033e commit c5e18f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ contract VoucherHub is
*/
function getVoucherType(
uint256 id
) public view whenVoucherTypeExists(id) returns (VoucherType memory) {
) external view whenVoucherTypeExists(id) returns (VoucherType memory) {
VoucherHubStorage storage $ = _getVoucherHubStorage();
return $.voucherTypes[id];
}
Expand Down
4 changes: 1 addition & 3 deletions contracts/beacon/Voucher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ contract Voucher is OwnableUpgradeable, IVoucher {
IexecLibOrders_v5.DatasetOrder calldata datasetOrder,
IexecLibOrders_v5.WorkerpoolOrder calldata workerpoolOrder,
IexecLibOrders_v5.RequestOrder calldata requestOrder
) external returns (bytes32 dealId) {
// TODO add onlyAuthorized
// TODO check expiration
) external onlyAuthorized onlyNotExpired returns (bytes32 dealId) {
VoucherStorage storage $ = _getVoucherStorage();
IVoucherHub voucherHub = IVoucherHub($._voucherHub);
address iexecPoco = voucherHub.getIexecPoco();
Expand Down

0 comments on commit c5e18f9

Please sign in to comment.