Skip to content

Commit 25bd2ec

Browse files
committed
revert with return data from sendValue failed call
1 parent fad2b6e commit 25bd2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/utils/Address.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ library Address {
3535
revert Errors.InsufficientBalance(address(this).balance, amount);
3636
}
3737

38-
(bool success, ) = recipient.call{value: amount}("");
38+
(bool success, bytes memory returndata) = recipient.call{value: amount}("");
3939
if (!success) {
40-
revert Errors.FailedCall();
40+
_revert(returndata);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)