@@ -0,0 +1,5 @@
+---
+'openzeppelin-solidity': minor
+
+`Address`: bubble up revert data on `sendValue` failed call
@@ -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);