Skip to content

Commit

Permalink
refactor: rename function many (dfinity#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Apr 25, 2024
1 parent 263aa21 commit 3fc8553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/icp/services/ic-custom-tokens.services.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { loadUserTokens } from '$icp/services/icrc.services';
import { icrcTokensStore } from '$icp/stores/icrc.store';
import type { IcrcCustomToken } from '$icp/types/icrc-custom-token';
import { setUserCustomTokens } from '$lib/api/backend.api';
import { setManyCustomTokens } from '$lib/api/backend.api';
import { AddTokenStep } from '$lib/enums/steps';
import type { Identity } from '@dfinity/agent';
import { Principal } from '@dfinity/principal';
Expand All @@ -18,7 +18,7 @@ export const saveCustomTokens = async ({
}) => {
progress(AddTokenStep.SAVE);

await setUserCustomTokens({
await setManyCustomTokens({
identity,
tokens: tokens.map(({ enabled, version, ledgerCanisterId, indexCanisterId }) => ({
enabled,
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/api/backend.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const listCustomTokens = async ({
return list_custom_tokens();
};

export const setUserCustomTokens = async ({
export const setManyCustomTokens = async ({
tokens,
identity
}: {
Expand Down

0 comments on commit 3fc8553

Please sign in to comment.