Set higher default gas limit, switch from bitlength u32 to u128 for input fields (#2743)
This commit is contained in:
parent
d0906aadd9
commit
eb195d5481
@ -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}
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user