Remove value & defaultValue combinations (contracts) (#1728)

This commit is contained in:
Jaco Greeff 2019-10-15 15:22:56 +02:00 committed by GitHub
parent b773fe2863
commit 332936cac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View File

@ -146,7 +146,6 @@ class Call extends TxComponent<Props, State> {
value={address}
/>
<Dropdown
defaultValue={method}
help={t('The message to send to this contract. Parameters are adjusted based on the ABI provided.')}
isError={!method}
label={t('message to send')}
@ -171,7 +170,6 @@ class Call extends TxComponent<Props, State> {
onChange={this.onChangeEndowment}
/>
<InputNumber
defaultValue={gasLimit}
help={t('The maximum amount of gas that can be used by this deployment, if the code requires more, the deployment will fail.')}
isError={!isGasValid}
label={t('maximum gas allowed')}

View File

@ -180,7 +180,6 @@ class Deploy extends ContractModal<Props, State> {
contractAbi
? (
<Dropdown
defaultValue={`${constructorIndex}`}
help={t('The deployment constructor information for this contract, as provided by the ABI.')}
isDisabled={contractAbi.abi.contract.constructors.length <= 1}
label={t('constructor')}
@ -203,7 +202,6 @@ class Deploy extends ContractModal<Props, State> {
}
/>
<InputBalance
defaultValue={endowment}
help={t('The allotted endowment for this contract, i.e. the amount transferred to the contract upon instantiation.')}
isDisabled={isBusy}
isError={!isEndowValid}

View File

@ -106,7 +106,6 @@ class ContractModal<P extends ContractModalProps, S extends ContractModalState>
return (
<InputAddress
defaultValue={accountId}
help={t('Specify the user account to use for this deployment. And fees will be deducted from this account.')}
isDisabled={isBusy}
isInput={false}
@ -124,7 +123,6 @@ class ContractModal<P extends ContractModalProps, S extends ContractModalState>
return (
<Input
defaultValue={name}
help={t(
this.isContract
? 'A name for the deployed contract to help users distinguish. Only used for display purposes.'
@ -151,7 +149,6 @@ class ContractModal<P extends ContractModalProps, S extends ContractModalState>
return (
<InputNumber
defaultValue={gasLimit}
help={t('The maximum amount of gas that can be used by this deployment, if the code requires more, the deployment will fail.')}
isDisabled={isBusy}
isError={!isGasValid}