Skip to content

Commit

Permalink
Update contracts/VoucherHub.sol
Browse files Browse the repository at this point in the history
Co-authored-by: Zied Guesmi <[email protected]>
  • Loading branch information
gfournieriExec and zguesmi authored Jun 10, 2024
1 parent 4f35a75 commit 248e7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ contract VoucherHub is
// The proxy contract does a delegatecall to its implementation.
// Re-Entrancy safe because the target contract is controlled.
Voucher(voucherAddress).initialize(owner, address(this), expiration, voucherType);
// SRLC
if (!IERC20($._iexecPoco).transfer(voucherAddress, value)) {
// SRLC
revert("VoucherHub: SRLC transfer to voucher failed");
}
_mint(voucherAddress, value); // VCHR
Expand Down

0 comments on commit 248e7f2

Please sign in to comment.