Fix createTransaction nonce usage on removeSelectedModule (#1892)

This commit is contained in:
Agustin Pane 2021-02-12 12:38:41 -03:00 committed by GitHub
parent 906e90c1d0
commit b6a167563b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -86,13 +86,13 @@ export const RemoveModuleModal = ({ onClose, selectedModulePair }: RemoveModuleM
const removeSelectedModule = async (txParameters: TxParameters): Promise<void> => { const removeSelectedModule = async (txParameters: TxParameters): Promise<void> => {
try { try {
dispatch( await dispatch(
createTransaction({ createTransaction({
safeAddress, safeAddress,
to: safeAddress, to: safeAddress,
valueInWei: '0', valueInWei: '0',
txData, txData,
txNonce: txParameters.ethNonce, txNonce: txParameters.safeNonce,
safeTxGas: txParameters.safeTxGas ? Number(txParameters.safeTxGas) : undefined, safeTxGas: txParameters.safeTxGas ? Number(txParameters.safeTxGas) : undefined,
ethParameters: txParameters, ethParameters: txParameters,
notifiedTransaction: TX_NOTIFICATION_TYPES.SETTINGS_CHANGE_TX, notifiedTransaction: TX_NOTIFICATION_TYPES.SETTINGS_CHANGE_TX,