Skip to content

Commit 243dcd5

Browse files
committed
backwards compat
1 parent 05f626e commit 243dcd5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/loop/internal/core/services/capability/capabilities_registry.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package capability
22

33
import (
44
"context"
5+
"encoding/hex"
56
"fmt"
67
"time"
78

@@ -511,7 +512,12 @@ func (c *capabilitiesRegistryServer) ConfigForCapability(ctx context.Context, re
511512
}
512513
transmitters := make([][]byte, len(cfg.Transmitters))
513514
for i, t := range cfg.Transmitters {
514-
transmitters[i] = []byte(t)
515+
decoded, hexErr := hex.DecodeString(string(t))
516+
if hexErr == nil {
517+
transmitters[i] = decoded
518+
} else {
519+
transmitters[i] = []byte(t)
520+
}
515521
}
516522
ccp.Ocr3Configs[key] = &capabilitiespb.OCR3Config{
517523
ConfigCount: cfg.ConfigCount,

0 commit comments

Comments
 (0)