Commit 73f6fcc4 authored by tom's avatar tom

fixes

parent 9f2da8b0
...@@ -11,7 +11,6 @@ import FancySelect from 'ui/shared/FancySelect/FancySelect'; ...@@ -11,7 +11,6 @@ import FancySelect from 'ui/shared/FancySelect/FancySelect';
import ContractVerificationFormRow from '../ContractVerificationFormRow'; import ContractVerificationFormRow from '../ContractVerificationFormRow';
// const SOURCIFY_ERROR_REGEXP = /(?<=\bcontracts\s\([^()]*)\w+/gi;
const SOURCIFY_ERROR_REGEXP = /\(([^()]*)\)/; const SOURCIFY_ERROR_REGEXP = /\(([^()]*)\)/;
const ContractVerificationFieldContractIndex = () => { const ContractVerificationFieldContractIndex = () => {
......
...@@ -65,7 +65,7 @@ const ContractVerificationFieldMethod = ({ control, isDisabled, methods }: Props ...@@ -65,7 +65,7 @@ const ContractVerificationFieldMethod = ({ control, isDisabled, methods }: Props
<chakra.span fontWeight={ 500 } fontSize="lg" fontFamily="heading"> <chakra.span fontWeight={ 500 } fontSize="lg" fontFamily="heading">
Currently, Blockscout supports { methods.length } contract verification methods Currently, Blockscout supports { methods.length } contract verification methods
</chakra.span> </chakra.span>
<Popover trigger="hover" isLazy placement={ isMobile ? 'bottom-end' : 'right-start' }> <Popover trigger="hover" isLazy placement={ isMobile ? 'bottom-end' : 'right-start' } offset={ [ -8, 8 ] }>
<PopoverTrigger> <PopoverTrigger>
<chakra.span display="inline-block" ml={ 1 } cursor="pointer" verticalAlign="middle" h="22px"> <chakra.span display="inline-block" ml={ 1 } cursor="pointer" verticalAlign="middle" h="22px">
<Icon as={ infoIcon } boxSize={ 5 } color="link" _hover={{ color: 'link_hovered' }}/> <Icon as={ infoIcon } boxSize={ 5 } color="link" _hover={{ color: 'link_hovered' }}/>
...@@ -76,7 +76,7 @@ const ContractVerificationFieldMethod = ({ control, isDisabled, methods }: Props ...@@ -76,7 +76,7 @@ const ContractVerificationFieldMethod = ({ control, isDisabled, methods }: Props
<PopoverArrow bgColor={ tooltipBg }/> <PopoverArrow bgColor={ tooltipBg }/>
<PopoverBody color="white"> <PopoverBody color="white">
<DarkMode> <DarkMode>
<span>Currently, Blockscout supports 6 methods:</span> <span>Currently, Blockscout supports { methods.length } methods:</span>
<OrderedList> <OrderedList>
<ListItem>Verification through flattened source code.</ListItem> <ListItem>Verification through flattened source code.</ListItem>
<ListItem> <ListItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment