Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Update to use any evm rpc url format (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj authored Aug 3, 2023
1 parent ac0295a commit 0550bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdweb/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit 0550bf3

Please sign in to comment.