Update SafeTxHistory to match required parameters

This commit is contained in:
apanizo 2018-08-05 13:13:34 +02:00
parent ee2a6f463d
commit bb5c7ca13c
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
import { getSafeEthereumInstance } from '~/wallets/createTransactions' import { getSafeEthereumInstance } from '~/wallets/createTransactions'
type Type = 'confirmation' | 'execution' type Type = 'confirmation' | 'execution'
type Operation = 0 | 1 | 2 export type Operation = 0 | 1 | 2
const calculateBodyFrom = async ( const calculateBodyFrom = async (
safeAddress: string, safeAddress: string,
@ -20,7 +20,7 @@ const calculateBodyFrom = async (
return JSON.stringify({ return JSON.stringify({
to, to,
value: valueInWei, value: Number(valueInWei),
data, data,
operation, operation,
nonce, nonce,
@ -43,7 +43,7 @@ export const submitOperation = async (
type: Type, type: Type,
) => { ) => {
const base = `safes/${safeAddress}/transaction/` const base = `safes/${safeAddress}/transaction/`
const url = `https://safe-transaction-history.dev.gnosisdev.com/${base}` const url = `https://safe-transaction-history.dev.gnosisdev.com/api/v1/${base}`
const headers = { const headers = {
Accept: 'application/json', Accept: 'application/json',
'Content-Type': 'application/json', 'Content-Type': 'application/json',