From 0550bf311d44b290b4fbe2d822b186e662e1b53a Mon Sep 17 00:00:00 2001 From: Adam Majmudar <64697628+adam-maj@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:54:33 -0700 Subject: [PATCH] Update to use any evm rpc url format (#137) --- thirdweb/sdk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdweb/sdk.go b/thirdweb/sdk.go index db5e1ce..cbd724d 100644 --- a/thirdweb/sdk.go +++ b/thirdweb/sdk.go @@ -271,7 +271,7 @@ func getDefaultRpcUrl(rpcUrlorName string, clientId string) (string, error) { if strings.HasPrefix(rpcUrlorName, "http") || strings.HasPrefix(rpcUrlorName, "wss") { return rpcUrlorName, nil } else { - return "", fmt.Errorf("invalid rpc url or chain name: %s", rpcUrlorName) + return defaultRpc(rpcUrlorName, clientId) } } }