Fix `saveTxToHistory`, remove hardcoded `CALL` (#582)

This commit is contained in:
Fernando 2020-02-18 18:44:47 -03:00 committed by GitHub
parent 7d64030b1a
commit b7eb988d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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}`)