Skip to content

Commit

Permalink
Merge pull request ethereum#481 from ethereum/fix-publish
Browse files Browse the repository at this point in the history
Support older solc
  • Loading branch information
chriseth authored Mar 21, 2017
2 parents 00e2a95 + 480456e commit eca5243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/universal-dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}
Expand Down

0 comments on commit eca5243

Please sign in to comment.