Skip to content

Commit

Permalink
revert with return data from sendValue failed call
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 16, 2024
1 parent fad2b6e commit 25bd2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/utils/Address.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ library Address {
revert Errors.InsufficientBalance(address(this).balance, amount);
}

(bool success, ) = recipient.call{value: amount}("");
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
_revert(returndata);
}
}

Expand Down

0 comments on commit 25bd2ec

Please sign in to comment.