WA-521 Disabling tx-history-service tracker for daily limit operations

This commit is contained in:
apanizo 2018-08-14 10:55:17 +02:00
parent 51c938a5d6
commit cd9c759de9
2 changed files with 9 additions and 4 deletions

View File

@ -66,12 +66,15 @@ export const executeDailyLimit = async (
const gas = await calculateGasOf(dailyLimitData, sender, dailyLimitModule.address) const gas = await calculateGasOf(dailyLimitData, sender, dailyLimitModule.address)
const gasPrice = await calculateGasPrice() const gasPrice = await calculateGasPrice()
const txHash = await dailyLimitModule.executeDailyLimit(0, to, valueInWei, { from: sender, gas, gasPrice }) const txReceipt = await dailyLimitModule.executeDailyLimit(0, to, valueInWei, { from: sender, gas, gasPrice })
checkReceiptStatus(txHash.tx) checkReceiptStatus(txReceipt.tx)
/*
// Temporarily disabled for daily limit operations
const operation = 0 // CALL for all currencies const operation = 0 // CALL for all currencies
const data = '' // empty for ETH const data = '' // empty for ETH
await submitOperation(safeAddress, to, valueInWei, data, operation, nonce, txHash, sender, 'execution')
return txHash await submitOperation(safeAddress, to, Number(valueInWei), data, operation, nonce, txReceipt.tx, sender, 'execution')
*/
return txReceipt.tx
} }

View File

@ -61,6 +61,8 @@ describe('Transactions Suite', () => {
]) ])
testTransactionFrom(transactions, 1, 'Add Owner Third account', nonce + 100, 0, safeAddress, secondTxData, false, secondTxConfirmations) testTransactionFrom(transactions, 1, 'Add Owner Third account', nonce + 100, 0, safeAddress, secondTxData, false, secondTxConfirmations)
localStorage.clear()
store.dispatch(fetchTransactions()) store.dispatch(fetchTransactions())
transactions = safeTransactionsSelector(store.getState(), { safeAddress }) transactions = safeTransactionsSelector(store.getState(), { safeAddress })
testSizeOfTransactions(transactions, 2) testSizeOfTransactions(transactions, 2)