fix extracting swarm hash

pull/3094/head
yann300 6 years ago committed by GitHub
parent ff178fa1e5
commit 22e94a47fa
  1. 2
      src/lib/publishOnSwarm.js

@ -22,7 +22,7 @@ module.exports = (contract, fileManager, cb, swarmVerifiedPublishCallBack) => {
// find hash
var hash
try {
hash = metadata.sources[fileName].urls[0].match('bzzr://(.+)')[1]
hash = metadata.sources[fileName].urls[0].match('(bzzr|bzz-raw)://(.+)')[1]
} catch (e) {
return cb('Metadata inconsistency')
}

Loading…
Cancel
Save