We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30795ec commit c3b2844Copy full SHA for c3b2844
1 file changed
pkg/utils/net.go
@@ -79,9 +79,9 @@ func GetIPPort(uri string) (netip.AddrPort, error) {
79
return netip.ParseAddrPort(uri)
80
}
81
82
-// SplitRPCURI splits the RPC URI into `endpoint` and `chain`.
+// SplitAvalanchegoRPCURI splits the RPC URI into `endpoint` and `chain`.
83
// Reverse operation of `fmt.Sprintf("%s/ext/bc/%s", endpoint, chain)`.
84
-// returns the `uri` and `chain` as strings, or an error if the request URI is invalid.
+// returns the `endpoint` and `chain` as strings, or an error if the request URI is invalid.
85
func SplitAvalanchegoRPCURI(requestURI string) (string, string, error) {
86
// Define the regex pattern
87
pattern := `^(https?://[^/]+)/ext/bc/([^/]+)/rpc$`
0 commit comments