remove value:0 where it's not needed

This commit is contained in:
mmv 2019-11-14 11:19:52 +04:00
parent 0e77694f5e
commit 80d033aa02
4 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ export const estimateDataGas = (
'',
)}000000000000000000000000000000000000000000000000000000000000000001`
const payload = safe.contract.methods
.execTransaction(to, valueInWei, data, operation, txGasEstimate, 0, gasPrice, gasToken, refundReceiver, sigs, { value: 0 })
.execTransaction(to, valueInWei, data, operation, txGasEstimate, 0, gasPrice, gasToken, refundReceiver, sigs)
.encodeABI()
// eslint-disable-next-line
@ -122,7 +122,7 @@ export const calculateTxFee = async (
'0x0000000000000000000000000000000000000000',
'0x0000000000000000000000000000000000000000',
sigs,
{ from: '0xbc2BB26a6d821e69A38016f3858561a1D80d4182', value: 0 },
{ from: '0xbc2BB26a6d821e69A38016f3858561a1D80d4182' },
)
return estimate

View File

@ -33,7 +33,7 @@ export const estimateTxGasCosts = async (
'',
)}000000000000000000000000000000000000000000000000000000000000000001`
txData = await safeInstance.methods
.execTransaction(to, tx ? tx.value : 0, data, CALL, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, signatures, { value: 0 })
.execTransaction(to, tx ? tx.value : 0, data, CALL, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, signatures)
.encodeABI()
} else {
const txHash = await safeInstance.methods

View File

@ -113,7 +113,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, { value: 0 })
.execTransaction(to, valueInWei, txData, CALL, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, sigs)
.encodeABI()
const errMsg = await getErrorMessage(safeInstance.address, 0, executeDataUsedSignatures, from)
console.error(`Error executing the TX: ${errMsg}`)

View File

@ -147,7 +147,7 @@ const processTransaction = (
closeSnackbar(pendingExecutionKey)
showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar)
const executeData = safeInstance.contract.methods.approveHash(txHash, { value: 0 }).encodeABI()
const executeData = safeInstance.contract.methods.approveHash(txHash).encodeABI()
const errMsg = await getErrorMessage(safeInstance.address, 0, executeData, from)
console.error(`Error executing the TX: ${errMsg}`)
}