Skip to content

Commit 55d8c25

Browse files
committed
refator: rename function
1 parent bde0c09 commit 55d8c25

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function setLiNearSDKConfig(config: LiNearSDKConfig) {
3333
/**
3434
* change subgraph URL
3535
*/
36-
function changeSubgraphUrl(apiUrl: string) {
36+
function changeSubgraphApiUrl(apiUrl: string) {
3737
const config = getLiNearSDKConfig();
3838
setLiNearSDKConfig({
3939
...config,
@@ -45,5 +45,5 @@ export {
4545
changeSDKEnvironment,
4646
getLiNearSDKConfig,
4747
setLiNearSDKConfig,
48-
changeSubgraphUrl,
48+
changeSubgraphApiUrl,
4949
};

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export {
33
changeSDKEnvironment,
44
setLiNearSDKConfig,
55
getLiNearSDKConfig,
6-
changeSubgraphUrl,
6+
changeSubgraphApiUrl,
77
} from './config';
88

99
export { SDK_ENV, LiNearSDKConfig } from './config/type';

test/apy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SECOND } from './../src/consts';
2-
import { getStakingApy, changeSDKEnvironment, SDK_ENV, setLiNearSDKConfig, getLiNearSDKConfig } from '../src';
2+
import { getStakingApy, changeSDKEnvironment, SDK_ENV } from '../src';
33

44
jest.setTimeout(20 * SECOND);
55

0 commit comments

Comments
 (0)