Unverified Commit f420fa1d authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Merge pull request #2309 from ethereum/yann300-patch-75

Fix extracting swarm hash
parents 3eda32c9 ef2d3ef2
......@@ -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')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment