Skip to content

Commit 80220f7

Browse files
committed
format
1 parent c167e9c commit 80220f7

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

src/redux/gas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export const gasPricesStartPolling =
410410
// the basefee at the time we fork mainnet during our hardhat tests
411411
let baseFee = baseFeePerGas;
412412
if (chainId === ChainId.mainnet && IS_TESTING === 'true' && useConnectedToHardhatStore.getState().connectedToHardhat) {
413-
baseFee = parseGasFeeParam(gweiToWei(1000));
413+
baseFee = parseGasFeeParam(gweiToWei(1000));
414414
}
415415

416416
if (customGasFeeModifiedByUser) {

src/resources/assets/hardhatAssets.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ const fetchHardhatBalancesWithBalanceChecker = async (
1616
tokens: string[],
1717
address: string
1818
): Promise<{ [tokenAddress: string]: string } | null> => {
19-
2019
const provider = getProvider({ chainId: ChainId.mainnet });
2120
const balanceCheckerContract = new Contract(MAINNET_BALANCE_CHECKER, balanceCheckerContractAbi, provider);
22-
21+
2322
try {
2423
const values = await balanceCheckerContract.balances([address], tokens);
2524
const balances: {

src/screens/SignTransactionSheet.tsx

+18-5
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export const SignTransactionSheet = () => {
392392
from: displayDetails?.request?.from,
393393
gasLimit,
394394
hash: sendResult.hash,
395-
network: chainsName[chainId] as Network,
395+
network: chainsName[chainId] as Network,
396396
nonce: sendResult.nonce,
397397
to: displayDetails?.request?.to,
398398
value: sendResult.value.toString(),
@@ -414,7 +414,7 @@ export const SignTransactionSheet = () => {
414414
dappName: transactionDetails.dappName,
415415
dappUrl: transactionDetails.dappUrl,
416416
isHardwareWallet: accountInfo.isHardwareWallet,
417-
network: chainsName[chainId] as Network
417+
network: chainsName[chainId] as Network,
418418
});
419419

420420
if (!sendInsteadOfSign) {
@@ -445,7 +445,7 @@ export const SignTransactionSheet = () => {
445445
dappUrl: transactionDetails?.dappUrl,
446446
formattedDappUrl,
447447
rpcMethod: req?.method,
448-
network: chainsName[chainId] as Network
448+
network: chainsName[chainId] as Network,
449449
});
450450
// If the user is using a hardware wallet, we don't want to close the sheet on an error
451451
if (!accountInfo.isHardwareWallet) {
@@ -526,15 +526,28 @@ export const SignTransactionSheet = () => {
526526
dappName: transactionDetails?.dappName,
527527
dappUrl: transactionDetails?.dappUrl,
528528
isHardwareWallet: accountInfo.isHardwareWallet,
529-
network: chainsName[chainId] as Network
529+
network: chainsName[chainId] as Network,
530530
});
531531
onSuccessCallback?.(response.result);
532532

533533
closeScreen(false);
534534
} else {
535535
await onCancel(response?.error);
536536
}
537-
}, [transactionDetails?.payload?.params, transactionDetails?.payload?.method, transactionDetails?.dappName, transactionDetails?.dappUrl, provider, chainId, source, accountInfo.address, accountInfo.isHardwareWallet, onSuccessCallback, closeScreen, onCancel]);
537+
}, [
538+
transactionDetails?.payload?.params,
539+
transactionDetails?.payload?.method,
540+
transactionDetails?.dappName,
541+
transactionDetails?.dappUrl,
542+
provider,
543+
chainId,
544+
source,
545+
accountInfo.address,
546+
accountInfo.isHardwareWallet,
547+
onSuccessCallback,
548+
closeScreen,
549+
onCancel,
550+
]);
538551

539552
const { onConfirm } = useConfirmTransaction({
540553
isMessageRequest,

0 commit comments

Comments
 (0)