From 703949f1d70b6697d207c3e81cca7c3f9b2efa54 Mon Sep 17 00:00:00 2001 From: apanizo Date: Thu, 9 Aug 2018 10:30:59 +0200 Subject: [PATCH] WA-521 Fix tests to make them to work with Tx History Service --- src/config/testing.js | 2 +- src/wallets/createTransactions.js | 2 +- src/wallets/safeTxHistory.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/testing.js b/src/config/testing.js index 7f63e89a..b1b55759 100644 --- a/src/config/testing.js +++ b/src/config/testing.js @@ -2,7 +2,7 @@ import { TX_SERVICE_HOST } from '~/config/names' const testConfig = { - [TX_SERVICE_HOST]: 'http://localhost:8080/api/v1/', + [TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/', } export default testConfig diff --git a/src/wallets/createTransactions.js b/src/wallets/createTransactions.js index 9379558b..6ccace90 100644 --- a/src/wallets/createTransactions.js +++ b/src/wallets/createTransactions.js @@ -120,7 +120,7 @@ export const createTransaction = async ( const txHash = await approveTransaction(safeAddress, to, valueInWei, data, CALL, nonce, sender) // TODO Remove when TX History service is fully integrated - const confirmations: List = buildConfirmationsFrom(owners, to, txHash) + const confirmations: List = buildConfirmationsFrom(owners, sender, txHash) // TODO Remove when TX History service is fully integrated return storeTransaction(name, nonce, to, value, sender, confirmations, '', safeAddress, threshold, data) diff --git a/src/wallets/safeTxHistory.js b/src/wallets/safeTxHistory.js index 0d369c0c..9b11c86f 100644 --- a/src/wallets/safeTxHistory.js +++ b/src/wallets/safeTxHistory.js @@ -64,7 +64,7 @@ export const submitOperation = async ( body, }) - if (response.status !== 201) { + if (response.status !== 202) { return Promise.reject(new Error('Error submitting the transaction')) }