Skip to content

Commit

Permalink
Merge pull request #245 from openbitdev/koni/dev/issue-244
Browse files Browse the repository at this point in the history
[Issue-244] fix: bug import custom Evm rpc
  • Loading branch information
saltict authored Jul 18, 2024
2 parents fad3eed + 65c0827 commit e728135
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ export const EVM_PASS_CONNECT_STATUS: Record<string, string[]> = {
arbitrum_one: ['*'],
okxTest: ['*'],
merlinEvm: ['*'],
layerEdge_testnet: ['*']
layerEdge_testnet: ['*'],
custom: ['*']
};

export const EVM_REFORMAT_DECIMALS = {
Expand Down
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

1 comment on commit e728135

@saltict
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.