WA-521 Fix tests to make them to work with Tx History Service
This commit is contained in:
parent
78511b4757
commit
703949f1d7
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue