diff --git a/src/components/admin-lte/tokens/index.js b/src/components/admin-lte/tokens/index.js index 5f3a996..5525a25 100644 --- a/src/components/admin-lte/tokens/index.js +++ b/src/components/admin-lte/tokens/index.js @@ -6,7 +6,7 @@ import TokenModal from './token-modal' import Spinner from '../../../images/loader.gif' // import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import SendTokens from './send-tokens' -import { SlpMutableData } from 'slp-mutable-data' +// import { SlpMutableData } from 'slp-mutable-data' let _this class Tokens extends React.Component { constructor (props) { @@ -271,20 +271,22 @@ class Tokens extends React.Component { async handleMutableData (tokensArr) { try { const tokens = [] - const slpMutableLib = new SlpMutableData() + // const slpMutableLib = new SlpMutableData() + for (let i = 0; i < tokensArr.length; i++) { const token = tokensArr[i] - try { - const data = await slpMutableLib.get.mutableData(token.tokenId) - token.mutableData = data - // console.log(`data: ${JSON.stringify(data, null, 2)}`) - } catch (error) { - // console.warn(error) - // Skip error - console.log( - `Could not access mutable data for ${token.ticker} (${token.tokenId})` - ) - } + // try { + // const data = await slpMutableLib.get.mutableData(token.tokenId) + // token.mutableData = data + // // console.log(`data: ${JSON.stringify(data, null, 2)}`) + // } catch (error) { + // // console.warn(error) + // // Skip error + // console.log( + // `Could not access mutable data for ${token.ticker} (${token.tokenId})` + // ) + // } + tokens.push(token) } @@ -295,10 +297,12 @@ class Tokens extends React.Component { } } } + Tokens.propTypes = { walletInfo: PropTypes.object.isRequired, // wallet info bchWallet: PropTypes.object, // get minimal-slp-wallet instance setTokensInfo: PropTypes.func.isRequired, // set tokens info tokensInfo: PropTypes.array // tokens info } + export default Tokens diff --git a/src/components/footer/index.js b/src/components/footer/index.js index abd701c..2b1d520 100644 --- a/src/components/footer/index.js +++ b/src/components/footer/index.js @@ -29,9 +29,11 @@ class Footer extends React.Component { async componentDidMount () { // Get hash using memo service - await this.handleMemoService() + // await this.handleMemoService() } + // This function retrieves the IPFS CID for the latest copy of this app. That + // CID is written to the BCH blockchain. async handleMemoService () { // This is a hard-coded hash or 'checkpoint' to use in times when the // connection fails. @@ -57,80 +59,34 @@ class Footer extends React.Component { render () { return ( -