mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-03 23:25:03 +00:00
fix IPFS not fetching from remote
This commit is contained in:
parent
602e32b68c
commit
47e0175dc5
@ -64,7 +64,7 @@ export const getFromIpfs = async hash => {
|
||||
export const getFiles = CID => {
|
||||
const clean = CID.split('/').slice(-1)[0]
|
||||
return new Promise(function(resolve, reject) {
|
||||
ipfs.get(clean, function (err, files) {
|
||||
ipfs.get(clean, (err, files) => {
|
||||
if (err) reject(err)
|
||||
else resolve(files)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user