We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Address.sendValue
1 parent fad2b6e commit 73b46e3Copy full SHA for 73b46e3
.changeset/cyan-taxis-travel.md
@@ -0,0 +1,5 @@
1
+---
2
+'openzeppelin-solidity': minor
3
4
+
5
+`Address`: bubble up revert data on `sendValue` failed call
contracts/utils/Address.sol
@@ -35,9 +35,9 @@ library Address {
35
revert Errors.InsufficientBalance(address(this).balance, amount);
36
}
37
38
- (bool success, ) = recipient.call{value: amount}("");
+ (bool success, bytes memory returndata) = recipient.call{value: amount}("");
39
if (!success) {
40
- revert Errors.FailedCall();
+ _revert(returndata);
41
42
43
0 commit comments