From cbf29c10e0f2435b1ed6a8ce0975bdddfc5a1dc3 Mon Sep 17 00:00:00 2001 From: apanizo Date: Thu, 24 May 2018 17:27:11 +0200 Subject: [PATCH] WA-238 Including only the txHash in the redux store of confirmations --- src/routes/safe/component/NoRights/index.jsx | 2 +- src/routes/safe/component/Transactions/transactions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/safe/component/NoRights/index.jsx b/src/routes/safe/component/NoRights/index.jsx index 291fd4ba..a036c340 100644 --- a/src/routes/safe/component/NoRights/index.jsx +++ b/src/routes/safe/component/NoRights/index.jsx @@ -12,7 +12,7 @@ const NoRights = () => ( - You do not have rights to operate with this safe. Pleave visit the Safe List. + Impossible load Safe, check its address and ownership diff --git a/src/routes/safe/component/Transactions/transactions.js b/src/routes/safe/component/Transactions/transactions.js index bff9ca1d..468d66b8 100644 --- a/src/routes/safe/component/Transactions/transactions.js +++ b/src/routes/safe/component/Transactions/transactions.js @@ -96,11 +96,11 @@ export const createTransaction = async ( if (hasOneOwner(safe)) { const txHash = await gnosisSafe.execTransactionIfApproved(txDestination, valueInWei, '0x', CALL, nonce, { from: user, gas: '5000000' }) const executedConfirmations: List = buildExecutedConfirmationFrom(safe.get('owners'), user) - return storeTransaction(txName, nonce, txDestination, txValue, user, executedConfirmations, txHash, safeAddress, safe.get('confirmations')) + return storeTransaction(txName, nonce, txDestination, txValue, user, executedConfirmations, txHash.tx, safeAddress, safe.get('confirmations')) } const txConfirmationHash = await gnosisSafe.approveTransactionWithParameters(txDestination, valueInWei, '0x', CALL, nonce, { from: user, gas: '5000000' }) - const confirmations: List = buildConfirmationsFrom(safe.get('owners'), user, txConfirmationHash) + const confirmations: List = buildConfirmationsFrom(safe.get('owners'), user, txConfirmationHash.tx) return storeTransaction(txName, nonce, txDestination, txValue, user, confirmations, '', safeAddress, safe.get('confirmations')) }