set gas to 0 when rejecting a tx. (#1993)

This commit is contained in:
nicolas 2021-03-08 11:44:39 -03:00 committed by GitHub
parent 4c37a2b7c1
commit 7312c99cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ export const RejectTxModal = ({ isOpen, onClose, gwTransaction }: Props): React.
isOffChainSignature, isOffChainSignature,
isCreation, isCreation,
gasLimit, gasLimit,
gasEstimation,
gasPriceFormatted, gasPriceFormatted,
} = useEstimateTransactionGas({ } = useEstimateTransactionGas({
txData: EMPTY_DATA, txData: EMPTY_DATA,
@ -85,7 +84,7 @@ export const RejectTxModal = ({ isOpen, onClose, gwTransaction }: Props): React.
<EditableTxParameters <EditableTxParameters
ethGasLimit={gasLimit} ethGasLimit={gasLimit}
ethGasPrice={gasPriceFormatted} ethGasPrice={gasPriceFormatted}
safeTxGas={gasEstimation.toString()} safeTxGas={'0'}
safeNonce={nonce.toString()} safeNonce={nonce.toString()}
parametersStatus={getParametersStatus()} parametersStatus={getParametersStatus()}
> >