fix(IPFS): Fixing bug in hash retrieval

This commit is contained in:
Chris Troutner
2020-12-18 17:56:46 -08:00
parent a7721fd823
commit 419942ecfd
+2 -2
View File
@@ -35,11 +35,11 @@ class Footer extends React.Component {
async handleMemoService () { async handleMemoService () {
// This is a hard-coded hash or 'checkpoint' to use in times when the // This is a hard-coded hash or 'checkpoint' to use in times when the
// connection fails. // connection fails.
const hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu' let hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu'
// Try to retrieve the hash from the BCH blockchain. // Try to retrieve the hash from the BCH blockchain.
try { try {
const hash = await this.memo.findHash() hash = await this.memo.findHash()
console.log(`IPFS hash found: ${hash}`) console.log(`IPFS hash found: ${hash}`)
if (!hash) { if (!hash) {