Publish metadata on Swarm

pull/1/head
Alex Beregszaszi 8 years ago
parent c83457172b
commit d978e2aefa
  1. 8
      src/app.js

@ -647,7 +647,13 @@ var run = function () {
udapp.event.register('publishContract', this, function (contract) {
console.log('Publish contract...', contract)
alert('Publishing a contract is not supported yet.')
swarmgw.put(contract.metadata, function (err, ret) {
if (err) {
alert('Failed to publish metadata: ' + err)
} else {
alert('Published metadata: ' + ret)
}
})
})
// ----------------- Renderer -----------------

Loading…
Cancel
Save