Skip to content

Commit

Permalink
chore: completely remove deprecated getNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Jul 25, 2024
1 parent 7d19ca9 commit 70a942b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -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;
5 changes: 1 addition & 4 deletions packages/sdk/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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');
});
});

Expand Down

0 comments on commit 70a942b

Please sign in to comment.