Set higher default gas limit, switch from bitlength u32 to u128 for input fields (#2743)

This commit is contained in:
Stefanie Doll 2020-05-14 11:35:40 +02:00 committed by GitHub
parent d0906aadd9
commit eb195d5481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -172,6 +172,7 @@ function Call (props: Props): React.ReactElement<Props> | null {
value={endowment}
/>
<InputNumber
bitLength={128}
defaultValue={DEFAULT_GAS_LIMIT}
help={t('The maximum amount of gas that can be used by this call. If the code requires more, the call will fail.')}
isDisabled={isBusy}

View File

@ -146,6 +146,7 @@ class ContractModal<P extends ContractModalProps, S extends ContractModalState>
return (
<InputNumber
bitLength={128}
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}

View File

@ -4,7 +4,7 @@
export const ENDOWMENT = 1000;
export const DEFAULT_GAS_LIMIT = '500000';
export const DEFAULT_GAS_LIMIT = '100000000000';
export const CONTRACT_NULL = {
abi: null,