File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export const BridgeInputGroup = ({
147
147
inputRef = { inputRef }
148
148
type = { TextFieldType . Text }
149
149
className = "amount-input"
150
- placeholder = { '0' }
150
+ placeholder = "0"
151
151
onKeyPress = { ( e ?: React . KeyboardEvent < HTMLDivElement > ) => {
152
152
if ( e ) {
153
153
// Only allow numbers and at most one decimal point
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { Numeric } from '../../../../shared/modules/Numeric';
16
16
import { EtherDenomination } from '../../../../shared/constants/common' ;
17
17
import { DEFAULT_PRECISION } from '../../../hooks/useCurrencyDisplay' ;
18
18
import { formatAmount } from '../../confirmations/components/simulation-details/formatAmount' ;
19
+ import { MULTICHAIN_NATIVE_CURRENCY_TO_CAIP19 } from '../../../../shared/constants/multichain/assets' ;
19
20
20
21
export const isQuoteExpired = (
21
22
isQuoteGoingToRefresh : boolean ,
@@ -29,7 +30,10 @@ export const isQuoteExpired = (
29
30
) ;
30
31
31
32
export const isNativeAddress = ( address ?: string | null ) =>
32
- address === zeroAddress ( ) || address === '' || ! address ;
33
+ address === zeroAddress ( ) ||
34
+ address === '' ||
35
+ ! address ||
36
+ MULTICHAIN_NATIVE_CURRENCY_TO_CAIP19 . SOL . includes ( address ) ;
33
37
34
38
export const calcToAmount = (
35
39
{ destTokenAmount, destAsset } : Quote ,
You can’t perform that action at this time.
0 commit comments