Support older solc

pull/1/head
Alex Beregszaszi 8 years ago
parent 00e2a951ec
commit 480456e2f8
  1. 2
      src/universal-dapp.js

@ -216,7 +216,7 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
$createButton.attr('title', 'This contract does not implement all functions and thus cannot be created.')
}
if (contract.metadata.length === 0) {
if ((contract.metadata === undefined) || (contract.metadata.length === 0)) {
$publishButton.attr('disabled', 'disabled')
$publishButton.attr('title', 'This contract does not implement all functions and thus cannot be published.')
}

Loading…
Cancel
Save