Skip to content

Commit a03d6a5

Browse files
committed
pkg/capabilities/v2/actions/confidentialrelay/types.go: relax validateExecutionID check
1 parent bdf9e82 commit a03d6a5

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

  • pkg/capabilities/v2/actions/confidentialrelay

pkg/capabilities/v2/actions/confidentialrelay/types.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,10 @@ func validateOwnerAddress(s string) error {
249249
return nil
250250
}
251251

252-
// validateExecutionID enforces 32-byte hex with no prefix.
252+
// validateExecutionID enforces a non-empty value.
253253
func validateExecutionID(s string) error {
254-
if len(s) != 64 {
255-
return errors.New("execution_id must be 32 bytes hex-encoded (64 hex chars, no 0x prefix)")
256-
}
257-
if _, err := hex.DecodeString(s); err != nil {
258-
return errors.New("execution_id must be 32 bytes hex-encoded (64 hex chars, no 0x prefix)")
254+
if s == "" {
255+
return errors.New("execution_id must be non-empty")
259256
}
260257
return nil
261258
}

0 commit comments

Comments
 (0)