From 480456e2f81bf83cd92aa165b608db70d6d62782 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 20 Mar 2017 23:14:58 +0000 Subject: [PATCH] Support older solc --- src/universal-dapp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index d6d0b2edf0..5833d2d6a6 100644 --- a/src/universal-dapp.js +++ b/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.') }