Skip to content

Commit

Permalink
Revert to call for the weth wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
xhad committed Nov 1, 2024
1 parent 47ec663 commit 642c1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SingleVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract SingleVault is ISingleVault, ERC4626Upgradeable, AccessControlUpgradeab

uint256 shares = previewDeposit(amount);

(bool success,) = address(weth).deposit{value: amount}();
(bool success,) = address(weth).call{value: amount}("");
if (!success) revert DepositFailed();

if (msg.sender != address(this)) {
Expand Down

0 comments on commit 642c1e5

Please sign in to comment.