From b7eb988d9f7b3538b26cdbf05a90edac01883d02 Mon Sep 17 00:00:00 2001 From: Fernando Date: Tue, 18 Feb 2020 18:44:47 -0300 Subject: [PATCH] Fix `saveTxToHistory`, remove hardcoded `CALL` (#582) --- src/routes/safe/store/actions/createTransaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/safe/store/actions/createTransaction.js b/src/routes/safe/store/actions/createTransaction.js index e99c2689..b432629c 100644 --- a/src/routes/safe/store/actions/createTransaction.js +++ b/src/routes/safe/store/actions/createTransaction.js @@ -160,7 +160,7 @@ const createTransaction = ({ to, valueInWei, txData, - CALL, + operation, nonce, 0, 0, @@ -200,7 +200,7 @@ const createTransaction = ({ showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar) const executeDataUsedSignatures = safeInstance.contract.methods - .execTransaction(to, valueInWei, txData, CALL, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, sigs) + .execTransaction(to, valueInWei, txData, operation, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, sigs) .encodeABI() const errMsg = await getErrorMessage(safeInstance.address, 0, executeDataUsedSignatures, from) console.error(`Error creating the TX: ${errMsg}`)