mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-14 12:04:08 +00:00
Fix saveTxToHistory
, remove hardcoded CALL
(#582)
This commit is contained in:
parent
7d64030b1a
commit
b7eb988d9f
@ -160,7 +160,7 @@ const createTransaction = ({
|
|||||||
to,
|
to,
|
||||||
valueInWei,
|
valueInWei,
|
||||||
txData,
|
txData,
|
||||||
CALL,
|
operation,
|
||||||
nonce,
|
nonce,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
@ -200,7 +200,7 @@ const createTransaction = ({
|
|||||||
showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar)
|
showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar)
|
||||||
|
|
||||||
const executeDataUsedSignatures = safeInstance.contract.methods
|
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()
|
.encodeABI()
|
||||||
const errMsg = await getErrorMessage(safeInstance.address, 0, executeDataUsedSignatures, from)
|
const errMsg = await getErrorMessage(safeInstance.address, 0, executeDataUsedSignatures, from)
|
||||||
console.error(`Error creating the TX: ${errMsg}`)
|
console.error(`Error creating the TX: ${errMsg}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user