File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1109,11 +1109,11 @@ def process_execution_layer_withdrawal_request(
11091109 validator = state.validators[index]
11101110
11111111 # Verify withdrawal credentials
1112- is_execution_address = validator.withdrawal_credentials[: 1 ] == ETH1_ADDRESS_WITHDRAWAL_PREFIX
1112+ has_correct_credential = has_execution_withdrawal_credential( validator)
11131113 is_correct_source_address = (
11141114 validator.withdrawal_credentials[12 :] == execution_layer_withdrawal_request.source_address
11151115 )
1116- if not (is_execution_address and is_correct_source_address):
1116+ if not (has_correct_credential and is_correct_source_address):
11171117 return
11181118 # Verify the validator is active
11191119 if not is_active_validator(validator, get_current_epoch(state)):
You can’t perform that action at this time.
0 commit comments