From 4178dc88be077397c1797c76d0e3dd121a37a41f Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 21 Oct 2017 12:38:35 +0300 Subject: [PATCH] spv get keys get -> post --- react/src/actions/actions/addCoin.js | 2 +- react/src/actions/actions/electrum.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/react/src/actions/actions/addCoin.js b/react/src/actions/actions/addCoin.js index 02c8528..ab2e218 100644 --- a/react/src/actions/actions/addCoin.js +++ b/react/src/actions/actions/addCoin.js @@ -60,7 +60,7 @@ export function shepherdElectrumAuth(seed) { body: JSON.stringify({ seed, iguana: true, - }) + }), }) .catch((error) => { console.log(error); diff --git a/react/src/actions/actions/electrum.js b/react/src/actions/actions/electrum.js index 5a5fd22..548f5b1 100644 --- a/react/src/actions/actions/electrum.js +++ b/react/src/actions/actions/electrum.js @@ -66,11 +66,16 @@ export function shepherdElectrumCheckServerConnection(address, port) { export function shepherdElectrumKeys(seed) { return new Promise((resolve, reject) => { - fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys?seed=${seed}&active=true&iguana=true`, { - method: 'GET', + fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys`, { + method: 'POST', headers: { 'Content-Type': 'application/json', - } + }, + body: JSON.stringify({ + seed, + active: true, + iguana: true, + }), }) .catch((error) => { console.log(error);