Skip to content

Commit

Permalink
Fix the transactionTypes utility
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Feb 12, 2020
1 parent bcb6aa4 commit 8678b9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/constants/transactionTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import store from '../store';
const defaultApiVersion = '2';

const transactionTypes = (t = str => str) => {
const apiVersion = store.getState().network.apiVersion;
const { network } = store.getState();
const apiVersion = network.networks && network.networks.LSK
? network.networks.LSK.apiVersion
: defaultApiVersion;
return {
send: {
code: 0,
Expand Down

0 comments on commit 8678b9f

Please sign in to comment.