Created
March 10, 2018 04:56
-
-
Save okstaticzero/9383a788026c9301baa691b6f2ba4bd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetchData = async () => { | |
const contractDetails = await getContractHash(this.props.specificNetworkAddress); | |
const ipfsHash = contractDetails[0]; | |
if (!ipfsHash) { return } | |
const timestamp = contractDetails[1].c[0]; | |
const details = await getJSON(ipfsHash); | |
this.setState({ ipfsData: details, loading: false, timestamp }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment