Browse Source

spv auth get -> post

v0.25
pbca26 7 years ago
parent
commit
04278bd01a
  1. 10
      react/src/actions/actions/addCoin.js
  2. 1
      react/src/components/dashboard/walletsData/walletsData.js

10
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);

1
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);

Loading…
Cancel
Save