Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweiii committed Feb 1, 2024
1 parent 2db9230 commit 2d0ec5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/adapters/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { BalanceData, BasicToken, TransferParams } from "../types";
import {
createRouteConfigs,
getDestAccountInfo,
getPolkadotXcmDeleveryFee,
getPolkadotXcmDeliveryFee,
validateAddress,
} from "../utils";

Expand Down Expand Up @@ -173,7 +173,7 @@ class BasePolkadotAdapter extends BaseCrossChainAdapter {
balance: this.balanceAdapter
.subscribeBalance(token, address)
.pipe(map((i) => i.available)),
deliveryFee: from(getPolkadotXcmDeleveryFee(this.chain.id, to, this.api)),
deliveryFee: from(getPolkadotXcmDeliveryFee(this.chain.id, to, this.api)),
}).pipe(
map(({ balance, txFee, deliveryFee }) => {
const tokenMeta = this.balanceAdapter?.getToken(token);
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from "./api-provider";
export * from "./adapters";
export * from "./configs/index";
export * from "./types";
export * from "./utils";
2 changes: 1 addition & 1 deletion src/utils/get-xcm-delivery-fee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ChainId, chains } from "../configs";
/**
* Only for polkadot and kusama dmp
*/
export async function getPolkadotXcmDeleveryFee(
export async function getPolkadotXcmDeliveryFee(
from: ChainId,
to: ChainId,
fromApi?: AnyApi
Expand Down

0 comments on commit 2d0ec5f

Please sign in to comment.