Skip to content

Commit

Permalink
fix: improve mock settlement handling
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jul 18, 2024
1 parent d7db004 commit d040895
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ func IsValidVMType(t string) bool {
}

func VerifyHubID(data HubData) error {
if data.ID == "mock" {
return nil
}

if data.RPC_URL == "" {
return fmt.Errorf("invalid hub ID: %s. RPC URL cannot be empty", data.ID)
}
Expand Down

0 comments on commit d040895

Please sign in to comment.