PR grumbles

This commit is contained in:
Nicolas Gotchac 2016-12-10 22:15:56 +01:00
parent 70eab0da03
commit 7401358543
2 changed files with 15 additions and 10 deletions

View File

@ -94,25 +94,28 @@ export default class DetailsStep extends Component {
<AddressSelect <AddressSelect
label='from account (contract owner)' label='from account (contract owner)'
hint='the owner account for this contract' hint='the owner account for this contract'
value={ fromAddress }
error={ fromAddressError }
accounts={ accounts } accounts={ accounts }
balances={ balances } balances={ balances }
onChange={ this.onFromAddressChange } /> error={ fromAddressError }
onChange={ this.onFromAddressChange }
value={ fromAddress }
/>
<Input <Input
label='contract name' label='contract name'
hint='a name for the deployed contract' hint='a name for the deployed contract'
error={ nameError } error={ nameError }
onChange={ this.onNameChange }
value={ name || '' } value={ name || '' }
onChange={ this.onNameChange } /> />
<Input <Input
label='contract description (optional)' label='contract description (optional)'
hint='a description for the contract' hint='a description for the contract'
error={ descriptionError } error={ descriptionError }
onChange={ this.onDescriptionChange }
value={ description } value={ description }
onChange={ this.onDescriptionChange } /> />
{ this.renderContractSelect() } { this.renderContractSelect() }
@ -120,17 +123,19 @@ export default class DetailsStep extends Component {
label='abi / solc combined-output' label='abi / solc combined-output'
hint='the abi of the contract to deploy or solc combined-output' hint='the abi of the contract to deploy or solc combined-output'
error={ abiError } error={ abiError }
value={ solcOutput }
onChange={ this.onSolcChange } onChange={ this.onSolcChange }
onSubmit={ this.onSolcSubmit } onSubmit={ this.onSolcSubmit }
readOnly={ readOnly } /> readOnly={ readOnly }
value={ solcOutput }
/>
<Input <Input
label='code' label='code'
hint='the compiled code of the contract to deploy' hint='the compiled code of the contract to deploy'
error={ codeError } error={ codeError }
value={ code }
onSubmit={ this.onCodeChange } onSubmit={ this.onCodeChange }
readOnly={ readOnly || solc } /> readOnly={ readOnly || solc }
value={ code }
/>
</Form> </Form>
); );

View File

@ -147,7 +147,7 @@ class Contracts extends Component {
> >
<Button <Button
icon={ <FileIcon /> } icon={ <FileIcon /> }
label='write contract' label='develop contract'
/> />
</Link>, </Link>,