Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Rename getNetHash -> getNethash
Browse files Browse the repository at this point in the history
  • Loading branch information
Gina Contrino committed Oct 12, 2017
1 parent 77a6771 commit 7e1d9d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/actions/peers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Lisk from 'lisk-js';
import actionTypes from '../constants/actions';
import { getNetHash } from './../utils/api/peers';
import { getNethash } from './../utils/api/peers';

const peerSet = (data, config) => ({
data: Object.assign({
Expand Down Expand Up @@ -38,7 +38,7 @@ export const activePeerSet = data =>
config.testnet = config.port === '7000';
}
if (config.custom) {
getNetHash(Lisk.api(config)).then((response) => {
getNethash(Lisk.api(config)).then((response) => {
config.nethash = response.nethash;
dispatch(peerSet(data, config));
});
Expand Down
2 changes: 1 addition & 1 deletion src/actions/peers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('actions: peers', () => {

beforeEach(() => {
dispatch = spy();
getNetHash = stub(peersApi, 'getNetHash');
getNetHash = stub(peersApi, 'getNethash');
});

afterEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/api/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const requestToActivePeer = (activePeer, path, urlParams) =>
});


const getNetHash = activePeer => (requestToActivePeer(activePeer, 'blocks/getNethash'));
const getNethash = activePeer => (requestToActivePeer(activePeer, 'blocks/getNethash'));

export { requestToActivePeer, getNetHash };
export { requestToActivePeer, getNethash };

0 comments on commit 7e1d9d3

Please sign in to comment.