upload to gateway to ensure pin

This commit is contained in:
Barry Gitarts 2019-07-29 15:48:28 -04:00 committed by Barry G
parent 51d4eb8bd3
commit 5f9a63eac5
1 changed files with 1 additions and 2 deletions

View File

@ -204,7 +204,7 @@ const SubmissionSection = ({ classes, history }) => {
.send({ from: account, gas: gas + 100 }) .send({ from: account, gas: gas + 100 })
.then(res => { .then(res => {
// cache locally // cache locally
uploadFilesToIpfs(uploads, manifest) uploadFilesToIpfs(uploads, manifest, true)
console.log({res}) console.log({res})
openSnackBar('success', addProjectSucessMsg(res)) openSnackBar('success', addProjectSucessMsg(res))
setTimeout(() => { setTimeout(() => {
@ -233,7 +233,6 @@ const SubmissionSection = ({ classes, history }) => {
const { firstHalf, secondHalf, fullWidth } = classes const { firstHalf, secondHalf, fullWidth } = classes
const { goalToken, goal } = values const { goalToken, goal } = values
const usdValue = convertTokenAmountUsd(goalToken, goal, prices) const usdValue = convertTokenAmountUsd(goalToken, goal, prices)
console.log({prices, usdValue})
return ( return (
<form onSubmit={handleSubmit} className={classes.submissionRoot}> <form onSubmit={handleSubmit} className={classes.submissionRoot}>
<div className={firstHalf}> <div className={firstHalf}>