We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 578acac + 981e365 commit 9b91ad9Copy full SHA for 9b91ad9
contracts/util/User.sol
@@ -0,0 +1,20 @@
1
+pragma solidity ^0.8.0;
2
+
3
+contract User {
4
+ function proxy(
5
+ address _target,
6
+ bytes memory _calldata
7
+ ) public returns (bool success, bytes memory returnData) {
8
+ (success, returnData) = _target.call(_calldata);
9
+ }
10
11
12
13
+ bytes memory _calldata,
14
+ uint256 _value
15
16
+ (success, returnData) = _target.call{value: _value}(_calldata);
17
18
19
+ receive() external payable {}
20
+}
0 commit comments