We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dea54ef commit a010ae1Copy full SHA for a010ae1
1 file changed
src/Pectra.sol
@@ -159,14 +159,12 @@ contract Pectra {
159
continue;
160
}
161
162
- if (!isZeroAmount && data[i].amount > MAX_WITHDRAWAL_AMOUNT) {
+ if (data[i].amount > MAX_WITHDRAWAL_AMOUNT) {
163
emit ExecutionLayerExitFailed(FailureReason.AMOUNT_EXCEEDS_MAXIMUM, data[i].pubkey, data[i].amount);
164
165
166
167
- bytes memory amountBytes = abi.encodePacked(data[i].amount);
168
-
169
- bytes memory concatenated = abi.encodePacked(data[i].pubkey, amountBytes);
+ bytes memory concatenated = abi.encodePacked(data[i].pubkey, data[i].amount);
170
(bool success,) = exitTarget.call{value: exitFee}(concatenated);
171
if (!success) {
172
emit ExecutionLayerExitFailed(FailureReason.OPERATION_FAILED, data[i].pubkey, data[i].amount);
0 commit comments