diff --git a/packages/sdk/src/errors.ts b/packages/sdk/src/errors.ts index f19ecbc2..2ffec2b7 100644 --- a/packages/sdk/src/errors.ts +++ b/packages/sdk/src/errors.ts @@ -1,4 +1,4 @@ -import { Token } from "@acala-network/sdk-core"; +import { Token } from '@acala-network/sdk-core'; export class MethodNotFound extends Error { readonly section: string; @@ -31,4 +31,4 @@ export class BelowExistentialDeposit extends Error { this.name = 'BelowExistentialDeposit'; this.message = `The ${address}'s ${token.display} balance may below the existential deposit after this action`; } -} \ No newline at end of file +} diff --git a/packages/sdk/src/wallet/wallet.ts b/packages/sdk/src/wallet/wallet.ts index 34eff80b..3c86ce87 100644 --- a/packages/sdk/src/wallet/wallet.ts +++ b/packages/sdk/src/wallet/wallet.ts @@ -355,12 +355,7 @@ export class Wallet implements BaseSDK { return firstValueFrom(this.subscribePrice(token, type)); } - public async checkTransfer ( - address: string, - currency: MaybeCurrency, - amount: FN, - direction: 'from' | 'to' = 'to' - ) { + public async checkTransfer(address: string, currency: MaybeCurrency, amount: FN, direction: 'from' | 'to' = 'to') { const { nativeToken } = this.getPresetTokens(); const token = this.getToken(currency); const tokenName = forceToCurrencyName(currency);