fix bad overwrite of proxy feature

pull/5370/head
Joseph Izang 2 years ago
parent c29787a22d
commit 6dc1640311
  1. 29
      libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

@ -557,30 +557,11 @@ export function ContractGUI (props: ContractGUIProps) {
<label className="mt-2 text-left d-block"> <label className="mt-2 text-left d-block">
Proxy Address : Proxy Address :
</label> </label>
<CustomTooltip <input style={{ height: 32 }} className="form-control udapp_input" data-id="ERC1967AddressInput" placeholder='proxy address' title='Enter previously deployed proxy address on the selected network' onChange={handleSetProxyAddress} onBlur={() => validateProxyAddress(proxyAddress) } />
tooltipText="Enter previously deployed proxy address on the selected network" { proxyAddressError && <span className='text-lowercase' data-id="errorMsgProxyAddress" style={{ fontSize: '.8em' }}>{ proxyAddressError }</span> }
placement="left" </div> :
tooltipId="ERC1967AddressInputTooltip" <span className='text-capitalize' data-id="lastDeployedERC1967Address" style={{ fontSize: '.8em' }}>{ proxyAddress || proxyAddressError }</span>
tooltipClasses="text-nowrap" }
>
<input
style={{ height: 32 }}
className="form-control udapp_input"
data-id="ERC1967AddressInput"
placeholder="proxy address"
onChange={handleSetProxyAddress}
/>
</CustomTooltip>
</div>
: (
<span
className="text-capitalize"
data-id="lastDeployedERC1967Address"
style={{ fontSize: ".8em" }}
>
{proxyAddress || "No proxy address available"}
</span>
)}
</div> </div>
</div> </div>
</> </>

Loading…
Cancel
Save