Commit eca5243d authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #481 from ethereum/fix-publish

Support older solc
parents 00e2a951 480456e2
......@@ -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.')
}
......
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