Gas exception warnings on deployment (#3938)
* add deployEstimateGas function * Render gas warning with Warning component * estimateGas, display warning on contract deploy * Update messages * Removed unused import * Fix calculated gas usage * Basic component smoktest * Only display warning on edit steps
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Form, TypedInput } from '~/ui';
|
||||
import { parseAbiType } from '~/util/abi';
|
||||
@@ -77,21 +78,24 @@ export default class ParametersStep extends Component {
|
||||
return (
|
||||
<div key={ index } className={ styles.funcparams }>
|
||||
<TypedInput
|
||||
label={ label }
|
||||
value={ value }
|
||||
error={ error }
|
||||
accounts={ accounts }
|
||||
error={ error }
|
||||
isEth={ false }
|
||||
label={ label }
|
||||
onChange={ onChange }
|
||||
param={ param }
|
||||
isEth={ false }
|
||||
/>
|
||||
value={ value } />
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>Choose the contract parameters</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id='deployContract.parameters.choose'
|
||||
defaultMessage='Choose the contract parameters' />
|
||||
</p>
|
||||
{ inputsComponents }
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user