Skip to content

Commit

Permalink
[Issue-244] fix: fix bug rpc status
Browse files Browse the repository at this point in the history
  • Loading branch information
bluezdot authored and bluedot committed Jul 17, 2024
1 parent a703afc commit 65c0827
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ export class EvmApi implements _EvmApi {

get ignoreNetListen (): boolean {
const ignoreRpc: string[] | undefined = EVM_PASS_CONNECT_STATUS[this.chainSlug];
const isCustomRpc = this.chainSlug.startsWith('custom-');

return ignoreRpc
? ignoreRpc.includes('*') || ignoreRpc.includes(this.apiUrl)
: false;
if (isCustomRpc) {
return true;
}

return !!ignoreRpc && (ignoreRpc.includes('*') || ignoreRpc.includes(this.apiUrl));
}

createIntervalCheckApi (): NodeJS.Timer {
Expand Down

0 comments on commit 65c0827

Please sign in to comment.