mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-23 10:45:27 +01:00
Reformat the whole codebase with 100 line width (#3403)
This commit is contained in:
@@ -98,8 +98,8 @@ abstract class BridgeDetailsViewModelBase with Store {
|
||||
|
||||
final sourceName =
|
||||
evm?.getChainInfoByChainId(transfer.sourceChainId)?.name ?? '${transfer.sourceChainId}';
|
||||
final destName =
|
||||
evm?.getChainInfoByChainId(transfer.destinationChainId)?.name ?? '${transfer.destinationChainId}';
|
||||
final destName = evm?.getChainInfoByChainId(transfer.destinationChainId)?.name ??
|
||||
'${transfer.destinationChainId}';
|
||||
|
||||
items.add(
|
||||
StandartListItem(
|
||||
|
||||
@@ -142,13 +142,13 @@ abstract class BridgeViewModelBase extends WalletChangeListenerViewModel with St
|
||||
|
||||
@computed
|
||||
String get amountDisplayFormatted {
|
||||
if (selectedToken == null) return "0.00";
|
||||
if (selectedToken == null) return "0.00";
|
||||
|
||||
return amountParsingProxy.getDisplayCryptoAmount(
|
||||
amount.replaceAll(',', '.'),
|
||||
selectedToken!,
|
||||
);
|
||||
}
|
||||
return amountParsingProxy.getDisplayCryptoAmount(
|
||||
amount.replaceAll(',', '.'),
|
||||
selectedToken!,
|
||||
);
|
||||
}
|
||||
|
||||
DecimalAmountValidator get decimalAmountValidator => DecimalAmountValidator(
|
||||
currency: selectedToken!,
|
||||
@@ -176,8 +176,7 @@ abstract class BridgeViewModelBase extends WalletChangeListenerViewModel with St
|
||||
String get quoteNativeFee {
|
||||
if (quote == null) return '—';
|
||||
|
||||
return amountParsingProxy.asDisplayString(
|
||||
Money(quote!.nativeFee, wallet.currency));
|
||||
return amountParsingProxy.asDisplayString(Money(quote!.nativeFee, wallet.currency));
|
||||
}
|
||||
|
||||
@computed
|
||||
@@ -281,10 +280,7 @@ abstract class BridgeViewModelBase extends WalletChangeListenerViewModel with St
|
||||
return;
|
||||
}
|
||||
setAmount(
|
||||
amountParsingProxy.asDisplayString(Money(
|
||||
selectedTokenBalance,
|
||||
token)
|
||||
),
|
||||
amountParsingProxy.asDisplayString(Money(selectedTokenBalance, token)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user