Implement ERC-7821 calldata compression in ERC7579Utils (#5602)
This commit is contained in:
@ -218,7 +218,9 @@ library ERC7579Utils {
|
||||
uint256 value,
|
||||
bytes calldata data
|
||||
) private returns (bytes memory) {
|
||||
(bool success, bytes memory returndata) = target.call{value: value}(data);
|
||||
(bool success, bytes memory returndata) = (target == address(0) ? address(this) : target).call{value: value}(
|
||||
data
|
||||
);
|
||||
return _validateExecutionMode(index, execType, success, returndata);
|
||||
}
|
||||
|
||||
@ -229,7 +231,7 @@ library ERC7579Utils {
|
||||
address target,
|
||||
bytes calldata data
|
||||
) private returns (bytes memory) {
|
||||
(bool success, bytes memory returndata) = target.delegatecall(data);
|
||||
(bool success, bytes memory returndata) = (target == address(0) ? address(this) : target).delegatecall(data);
|
||||
return _validateExecutionMode(index, execType, success, returndata);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user