WA-521 Fix tests to make them to work with Tx History Service

This commit is contained in:
apanizo 2018-08-09 10:30:59 +02:00
parent 78511b4757
commit 703949f1d7
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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<Confirmation> = buildConfirmationsFrom(owners, to, txHash)
const confirmations: List<Confirmation> = buildConfirmationsFrom(owners, sender, txHash)
// TODO Remove when TX History service is fully integrated
return storeTransaction(name, nonce, to, value, sender, confirmations, '', safeAddress, threshold, data)

View File

@ -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'))
}