mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-11 12:04:21 +00:00
add fix incorrect path on prod build
This commit is contained in:
parent
89b305540e
commit
8c4413c644
@ -55,7 +55,7 @@
|
|||||||
"webpack": "4.28.3",
|
"webpack": "4.28.3",
|
||||||
"worker-loader": "^2.0.0"
|
"worker-loader": "^2.0.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/Giveth/liquidpledging#readme",
|
"homepage": ".",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aragon/os": "3.1.9",
|
"@aragon/os": "3.1.9",
|
||||||
"@areknawo/rex": "^2.0.0",
|
"@areknawo/rex": "^2.0.0",
|
||||||
|
@ -54,6 +54,12 @@ export const uploadToIpfs = async files => {
|
|||||||
return `ipfs/${res[0].hash}`
|
return `ipfs/${res[0].hash}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const pinToIpfs = async hash => {
|
||||||
|
const cid = hash.split('/').slice(-1)[0]
|
||||||
|
const res = await ipfs.pin.add(cid, { recursive: false })
|
||||||
|
console.log({res})
|
||||||
|
}
|
||||||
|
|
||||||
export const getImageFromIpfs = async (hash, cb) => {
|
export const getImageFromIpfs = async (hash, cb) => {
|
||||||
const res = await getFromIpfs(hash)
|
const res = await getFromIpfs(hash)
|
||||||
cb(res)
|
cb(res)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user