From 70a942b8d4efd43c9d0e98b6e6e7d6c311dd3970 Mon Sep 17 00:00:00 2001 From: einaralex Date: Thu, 25 Jul 2024 12:35:52 +0000 Subject: [PATCH] chore: completely remove deprecated getNetwork --- packages/sdk/src/index.ts | 2 +- packages/sdk/test/client.test.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index da60de4b..df4be9fc 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -1,7 +1,7 @@ import { MoneriumClient } from './client'; export { default as constants } from './constants'; export * from './types'; -export { placeOrderMessage, rfc3339, getChain, getNetwork } from './utils'; +export { placeOrderMessage, rfc3339, getChain } from './utils'; export { MoneriumClient }; export default MoneriumClient; diff --git a/packages/sdk/test/client.test.ts b/packages/sdk/test/client.test.ts index 90636706..03774609 100644 --- a/packages/sdk/test/client.test.ts +++ b/packages/sdk/test/client.test.ts @@ -19,7 +19,7 @@ import { PaymentStandard, } from '../src/types'; import { rfc3339 } from '../src/utils'; -import { getChain, getNetwork } from '../src/utils'; +import { getChain } from '../src/utils'; import { APP_ONE_AUTH_FLOW_CLIENT_ID, APP_ONE_CREDENTIALS_CLIENT_ID, @@ -468,9 +468,6 @@ describe.skip('MoneriumClient', () => { expect(getChain(1)).toBe('ethereum'); expect(getChain(137)).toBe('polygon'); expect(getChain(80002)).toBe('polygon'); - expect(getNetwork(1)).toBe('mainnet'); - expect(getNetwork(137)).toBe('mainnet'); - expect(getNetwork(10200)).toBe('chiado'); }); });