Skip to content

Commit a2826ed

Browse files
committed
refactor: Change the test code location
1 parent a4c5959 commit a2826ed

File tree

8 files changed

+2
-2
lines changed

8 files changed

+2
-2
lines changed

packages/sdk/src/providers/gno-wallet/gno-wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class GnoWalletProvider implements TM2WalletProvider {
146146

147147
const normalizedRpcUrl = normalizeRpcUrl(options.rpcUrl);
148148

149-
if (this.isNetworkDuplicate(options.chainId, normalizedRpcUrl)) {
149+
if (this.isExistingNetwork(options.chainId, normalizedRpcUrl)) {
150150
return makeResponseMessage(WalletResponseFailureType.NETWORK_ALREADY_EXISTS);
151151
}
152152

@@ -239,7 +239,7 @@ export class GnoWalletProvider implements TM2WalletProvider {
239239
* @param normalizedRpcUrl
240240
* @returns {boolean} true if network with same chainId or RPC URL exists, false otherwise
241241
*/
242-
private isNetworkDuplicate(chainId: string, normalizedRpcUrl: string): boolean {
242+
private isExistingNetwork(chainId: string, normalizedRpcUrl: string): boolean {
243243
return this.networks.some(
244244
(network) => network.chainId === chainId || normalizeRpcUrl(network.rpcUrl) === normalizedRpcUrl
245245
);

0 commit comments

Comments
 (0)