From 7b6dec9deb7a0572f10bdb75aa48bea8b3801674 Mon Sep 17 00:00:00 2001 From: d11e9 Date: Tue, 1 Sep 2015 22:00:44 +0000 Subject: [PATCH] output uDApp combined abi,name,bytecode --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 89533b3c15..7c43cc18d3 100644 --- a/index.html +++ b/index.html @@ -417,6 +417,11 @@ input[readonly] { return code; }; + var combined = function(contractName, interface, bytecode){ + return JSON.stringify( [{name: contractName, interface: interface, bytecode: bytecode}]); + + }; + var renderContracts = function(data, source) { window.localStorage.setItem( SOL_CACHE_KEY, source ); @@ -434,6 +439,7 @@ input[readonly] { .append(tableRow('Bytecode', contract.bytecode)); body.append(tableRow('Interface', contract['interface'])) .append(textRow('Web3 deploy', gethDeploy(contractName.toLowerCase(),contract['interface'],contract.bytecode), 'deploy')) + .append(textRow('uDApp', combined(contractName,contract['interface'],contract.bytecode), 'deploy')) .append(getDetails(contract, source, contractName)); $('#output').append(contractOutput);