Skip to content

Commit

Permalink
lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qrtp committed Nov 1, 2024
1 parent 5235186 commit af1852a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ui-components/src/components/Wallet/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const Send: React.FC<Props> = ({
}

// normalize asset decimals if present
const normalizedBase = parseInt(value);
const normalizedBase = parseInt(value, 10);
const normalizedValue =
value.includes('.') && accountAsset.balance?.decimals
? `${normalizedBase}.${value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
getBlockchainSymbol,
} from '../Manage/common/verification/types';
import {TitleWithBackButton} from './TitleWithBackButton';
import {TokenEntry} from './Token';
import type {TokenEntry} from './Token';

const useStyles = makeStyles()((theme: Theme) => ({
fullWidth: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
getBlockchainSymbol,
} from '../Manage/common/verification/types';
import {OperationStatus} from './OperationStatus';
import {TokenEntry} from './Token';
import type {TokenEntry} from './Token';

const useStyles = makeStyles()((theme: Theme) => ({
fullWidth: {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/src/hooks/useSubmitTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getBlockchainSymbol,
getRecordKeys,
} from '../components/Manage/common/verification/types';
import {TokenEntry} from '../components/Wallet/Token';
import type {TokenEntry} from '../components/Wallet/Token';
import {TokenType} from '../lib';
import {notifyEvent} from '../lib/error';
import {FB_MAX_RETRY, FB_WAIT_TIME_MS} from '../lib/fireBlocks/client';
Expand Down
8 changes: 4 additions & 4 deletions packages/ui-components/src/lib/wallet/evm/web3.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {erc20Abi} from 'abitype/abis';
import {Web3} from 'web3';

export const getWeb3 = (providerUrl: string): Web3 => {
return new Web3(providerUrl);
};

export const getContract = (
providerUrl: string,
tokenAddress: string,
Expand All @@ -25,3 +21,7 @@ export const getContractDecimals = async (
const decimals = await erc20Contract.methods.decimals.call([]).call();
return Number(decimals);
};

export const getWeb3 = (providerUrl: string): Web3 => {
return new Web3(providerUrl);
};

0 comments on commit af1852a

Please sign in to comment.