diff --git a/react/src/actions/actions/addCoin.js b/react/src/actions/actions/addCoin.js index 75d3589..02c8528 100644 --- a/react/src/actions/actions/addCoin.js +++ b/react/src/actions/actions/addCoin.js @@ -52,11 +52,15 @@ export function activeHandle() { export function shepherdElectrumAuth(seed) { return dispatch => { - return fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/login?seed=${seed}&iguana=true`, { - method: 'GET', + return fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/login`, { + method: 'POST', headers: { 'Content-Type': 'application/json', - } + }, + body: JSON.stringify({ + seed, + iguana: true, + }) }) .catch((error) => { console.log(error); diff --git a/react/src/components/dashboard/walletsData/walletsData.js b/react/src/components/dashboard/walletsData/walletsData.js index 12b4554..41d354c 100644 --- a/react/src/components/dashboard/walletsData/walletsData.js +++ b/react/src/components/dashboard/walletsData/walletsData.js @@ -52,7 +52,6 @@ class WalletsData extends React.Component { coin: null, txhistory: null, }; - this.openDropMenu = this.openDropMenu.bind(this); this.handleClickOutside = this.handleClickOutside.bind(this); this.refreshTxHistory = this.refreshTxHistory.bind(this);