don't format json cause hash mismatch in that case ...

pull/1/head
yann300 7 years ago
parent 43cf513e40
commit 9c822980ed
  1. 4
      src/app/contract/publishOnSwarm.js

@ -7,10 +7,6 @@ module.exports = (contract, appAPI, cb, swarmVerifiedPublishCallBack) => {
// gather list of files to publish
var sources = []
try {
contract.metadata = JSON.stringify(JSON.parse(contract.metadata), null, '\t')
} catch (e) {}
sources.push({
content: contract.metadata,
hash: contract.metadataHash

Loading…
Cancel
Save