Fix references to api outside of parity.js (#4981)

This commit is contained in:
Nicolas Gotchac
2017-03-21 15:36:47 +01:00
committed by Jaco Greeff
parent 213f61e826
commit 9b9cd451d1
5 changed files with 7 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
const { api } = window.parity;
import { api } from '../parity';
export const SET_ACCOUNTS = 'SET_ACCOUNTS';
export const setAccounts = (accounts) => ({

View File

@@ -17,8 +17,7 @@
import Contracts from '~/contracts';
import { loadToken, setTokenPending, deleteToken, setTokenData } from '../Tokens/actions';
const { api } = window.parity;
import { api } from '../parity';
export const SET_LOADING = 'SET_LOADING';
export const setLoading = (isLoading) => ({

View File

@@ -16,12 +16,11 @@
import React, { Component, PropTypes } from 'react';
import { api } from '../parity';
import Chip from '../Chip';
import styles from './status.css';
const { api } = window.parity;
export default class Status extends Component {
static propTypes = {
address: PropTypes.string.isRequired,

View File

@@ -16,8 +16,9 @@
import { URL_TYPE } from '../Inputs/validation';
import { getTokenTotalSupply, urlToHash } from '../utils';
import { api } from '../parity';
const { bytesToHex } = window.parity.api.util;
const { bytesToHex } = api.util;
export const SET_TOKENS_LOADING = 'SET_TOKENS_LOADING';
export const setTokensLoading = (isLoading) => ({