Skip to content

Commit

Permalink
improve: Suppress RPC provider key from error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Oct 24, 2023
1 parent a0bb954 commit 7939670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ProviderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class RateLimitedProvider extends ethers.providers.StaticJsonRpcProvider {
const defaultTimeout = 60 * 1000;

function formatProviderError(provider: ethers.providers.StaticJsonRpcProvider, rawErrorText: string) {
return `Provider ${provider.connection.url} failed with error: ${rawErrorText}`;
return `Provider ${getOriginFromURL(provider.connection.url)} failed with error: ${rawErrorText}`;
}

function createSendErrorWithMessage(message: string, sendError: any) {
Expand Down

0 comments on commit 7939670

Please sign in to comment.