Skip to content

Commit

Permalink
[Keystone] Standardize all default capability versions to 1.0.0 (#13468)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolekk authored Jun 7, 2024
1 parent 3456651 commit 335167d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/capabilities/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (s *registrySyncer) Start(ctx context.Context) error {
// that reads the configuration from chain (KS-117).
func (s *registrySyncer) launch(ctx context.Context) {
defer s.wg.Done()
capId := "streams-trigger@0.0.1"
capId := "streams-trigger@1.0.0"
triggerInfo, err := capabilities.NewRemoteCapabilityInfo(
capId,
capabilities.CapabilityTypeTrigger,
Expand All @@ -89,7 +89,7 @@ func (s *registrySyncer) launch(ctx context.Context) {
return
}

targetCapId := "write_ethereum-testnet-sepolia@0.0.1"
targetCapId := "write_ethereum-testnet-sepolia@1.0.0"
targetInfo, err := capabilities.NewRemoteCapabilityInfo(
targetCapId,
capabilities.CapabilityTypeTarget,
Expand Down
4 changes: 2 additions & 2 deletions core/services/relay/evm/write_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (

func NewWriteTarget(ctx context.Context, relayer *Relayer, chain legacyevm.Chain, lggr logger.Logger) (*targets.WriteTarget, error) {
// generate ID based on chain selector
id := fmt.Sprintf("write_%v@0.0.1", chain.ID())
id := fmt.Sprintf("write_%v@1.0.0", chain.ID())
chainName, err := chainselectors.NameFromChainId(chain.ID().Uint64())
if err == nil {
id = fmt.Sprintf("write_%v@0.0.1", chainName)
id = fmt.Sprintf("write_%v@1.0.0", chainName)
}

// EVM-specific init
Expand Down

0 comments on commit 335167d

Please sign in to comment.