scripts/deploy.js
function (hash) {
  return new Promise((resolve, reject) => {
    request(`${ ipfsProtocol }://${ ipfsHost }/ipfs/${hash}`, function (err, response, body) {
      if (err) {
        reject(err);
      } else {
        resolve(response);
      }
    });
  });
}
function (hash) {
  return new Promise((resolve, reject) => {
    request(`${ ipfsProtocol }://${ ipfsHost }/ipfs/${hash}`, function (err, response, body) {
      if (err) {
        reject(err);
      } else {
        resolve(response);
      }
    });
  });
}
function ( hash ) { return new Promise ( ( resolve , reject ) => { request ( ` ${ ipfsProtocol } ${ ipfsHost } ${ hash } ` , function ( err , response , body ) { if ( err ) { reject ( err ) ; } else { resolve ( response ) ; } } ) ; } ) ; }
Loads an ipfs hash to be sure, that its added and pinned.
@param {string} hash ipfs hash to load
Loads an ipfs hash to be sure that its added and pinned .