Skip to content

Commit

Permalink
Uses uint64 type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez committed Nov 22, 2024
1 parent 12eb0f8 commit bab657e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deployment/keystone/changeset/deploy_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ import (
kslib "github.com/smartcontractkit/chainlink/deployment/keystone"
)

var _ deployment.ChangeSet[interface{}] = DeployCapabilityRegistry
var _ deployment.ChangeSet[uint64] = DeployCapabilityRegistry

func DeployCapabilityRegistry(env deployment.Environment, config interface{}) (deployment.ChangesetOutput, error) {
registrySelector, ok := config.(uint64)
if !ok {
return deployment.ChangesetOutput{}, deployment.ErrInvalidConfig
}
func DeployCapabilityRegistry(env deployment.Environment, registrySelector uint64) (deployment.ChangesetOutput, error) {
chain, ok := env.Chains[registrySelector]
if !ok {
return deployment.ChangesetOutput{}, fmt.Errorf("chain not found in environment")
Expand Down

0 comments on commit bab657e

Please sign in to comment.