Merge pull request #3842 from ethereum/ethsUXImpr

Etherscan UX improvements
pull/3843/head
yann300 1 year ago committed by GitHub
commit eed6528692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      apps/etherscan/src/app/views/VerifyView.tsx

@ -208,8 +208,6 @@ export const VerifyView: React.FC<Props> = ({
name="contractAddress"
component="div"
/>
</div>
<div className="d-flex mb-2 custom-control custom-checkbox">
<Field
className="custom-control-input"
@ -222,19 +220,12 @@ export const VerifyView: React.FC<Props> = ({
else setIsProxyContract(false)
}}
/>
<label className="form-check-label custom-control-label" htmlFor="isProxy">It's a proxy contract</label>
<label className="form-check-label custom-control-label" htmlFor="isProxy">It's a proxy contract address</label>
</div>
</div>
<div className={ isProxyContract ? 'form-group d-block': 'form-group d-none' }>
<label htmlFor="expectedImplAddress">Expected Implementation Address</label>
<CustomTooltip
placement={'top'}
tooltipClasses="text-wrap"
tooltipId="etherscan-impl-address-info"
tooltipText="Make sure implementation contract is already verified before proxy contract"
>
<i style={{ fontSize: 'small' }} className={'ml-1 fal fa-info-circle align-self-center'} aria-hidden="true"></i>
</CustomTooltip>
<CustomTooltip
tooltipText='Providing expected implementation address enforces a check to ensure the returned implementation contract address is same as address picked up by the verifier'
tooltipId='etherscan-impl-address'
@ -244,9 +235,11 @@ export const VerifyView: React.FC<Props> = ({
className="form-control"
type="text"
name="expectedImplAddress"
placeholder="e.g. 0x11b79afc03baf25c631dd70169bb6a3160b2706e"
placeholder="verified implementation contract address"
/>
</CustomTooltip>
<i style={{ fontSize: 'x-small' }} className={'ml-1 fal fa-info-circle align-self-center'} aria-hidden="true"></i>
<label> &nbsp;Make sure contract is already verified on Etherscan</label>
</div>
<SubmitButton dataId="verify-contract" text="Verify"

Loading…
Cancel
Save