From bb5c7ca13c1eac82c399e72f307c7b304beca371 Mon Sep 17 00:00:00 2001 From: apanizo Date: Sun, 5 Aug 2018 13:13:34 +0200 Subject: [PATCH] Update SafeTxHistory to match required parameters --- src/wallets/safeTxHistory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallets/safeTxHistory.js b/src/wallets/safeTxHistory.js index 97c299b5..a4979cd8 100644 --- a/src/wallets/safeTxHistory.js +++ b/src/wallets/safeTxHistory.js @@ -2,7 +2,7 @@ import { getSafeEthereumInstance } from '~/wallets/createTransactions' type Type = 'confirmation' | 'execution' -type Operation = 0 | 1 | 2 +export type Operation = 0 | 1 | 2 const calculateBodyFrom = async ( safeAddress: string, @@ -20,7 +20,7 @@ const calculateBodyFrom = async ( return JSON.stringify({ to, - value: valueInWei, + value: Number(valueInWei), data, operation, nonce, @@ -43,7 +43,7 @@ export const submitOperation = async ( type: Type, ) => { 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 = { Accept: 'application/json', 'Content-Type': 'application/json',