Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
huy-nodeset committed Jun 18, 2024
1 parent 4c0172e commit 0ab0f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/nodeset-client-v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ func IsUploadedToNodeset(pubKey beacon.ValidatorPubkey, registeredPubkeys []beac
func GetNodesetStatus(pubKey beacon.ValidatorPubkey, registeredPubkeysStatusMapping map[beacon.ValidatorPubkey]string) swtypes.NodesetStatus {
for registeredPubKey, nodesetStatus := range registeredPubkeysStatusMapping {
if registeredPubKey == pubKey {
// TODO: Convert these string values to enum
if nodesetStatus == "REGISTERED" {
return swtypes.NodesetStatus_RegisteredToStakewise
} else if nodesetStatus == "UPLOADED" {
Expand Down

0 comments on commit 0ab0f1d

Please sign in to comment.