fix: allow to call V1 methods post-Shanghai (#8250)

This commit is contained in:
Federico Gimenez
2024-05-14 20:33:50 +02:00
committed by GitHub
parent d1f38f1661
commit 2e2c8e1d63

View File

@ -159,10 +159,6 @@ pub fn validate_withdrawals_presence(
return Err(message_validation_kind
.to_error(VersionSpecificValidationError::WithdrawalsNotSupportedInV1))
}
if is_shanghai_active {
return Err(message_validation_kind
.to_error(VersionSpecificValidationError::NoWithdrawalsPostShanghai))
}
}
EngineApiMessageVersion::V2 | EngineApiMessageVersion::V3 | EngineApiMessageVersion::V4 => {
if is_shanghai_active && !has_withdrawals {