Skip to content

Commit

Permalink
update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Jun 10, 2024
1 parent b3f5ac5 commit c352286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ contract VoucherHub is
_mint(voucherAddress, value); // VCHR
$._isVoucher[voucherAddress] = true;
emit VoucherCreated(voucherAddress, owner, voucherType, expiration, value);
_transfertFundsToVoucher($._iexecPoco, voucherAddress, value); // SRLC
_transfertFundsToVoucherOnPoco($._iexecPoco, voucherAddress, value); // SRLC
}

/**
Expand All @@ -190,7 +190,7 @@ contract VoucherHub is
VoucherHubStorage storage $ = _getVoucherHubStorage();
require($._isVoucher[voucher], "VoucherHub: unknown voucher");
_mint(voucher, value); // VCHR
_transfertFundsToVoucher($._iexecPoco, voucher, value); // SRLC
_transfertFundsToVoucherOnPoco($._iexecPoco, voucher, value); // SRLC
uint256 expiration = block.timestamp + $.voucherTypes[Voucher(voucher).getType()].duration;
Voucher(voucher).setExpiration(expiration);
emit VoucherToppedUp(voucher, expiration, value);
Expand Down Expand Up @@ -337,7 +337,7 @@ contract VoucherHub is
return bytes32(uint256(uint160(account)));
}

function _transfertFundsToVoucher(
function _transfertFundsToVoucherOnPoco(
address iexecPoco,
address voucherAddress,
uint256 value
Expand Down

0 comments on commit c352286

Please sign in to comment.