Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 committed Jul 27, 2023
1 parent 42f7f7b commit 44d5fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/errors.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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`;
}
}
}
7 changes: 1 addition & 6 deletions packages/sdk/src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 44d5fa0

Please sign in to comment.