From 68deca9fea31b3ee737eee3e43efd4478c5ef7be Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 2 Oct 2018 13:08:47 +0100 Subject: [PATCH] Add bytecode and abi to contract overview --- embark-ui/src/components/Contract.js | 16 ++++++++++++++++ embark-ui/src/general.css | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/embark-ui/src/components/Contract.js b/embark-ui/src/components/Contract.js index 658e6dac0..f102bc1b3 100644 --- a/embark-ui/src/components/Contract.js +++ b/embark-ui/src/components/Contract.js @@ -36,6 +36,22 @@ const Contract = ({contract, match}) => { + + + ABI + + +
{JSON.stringify(contract.abiDefinition)}
+
+
+ + + Bytecode + + + {contract.runtimeBytecode} + + diff --git a/embark-ui/src/general.css b/embark-ui/src/general.css index e5596a336..0555735f7 100644 --- a/embark-ui/src/general.css +++ b/embark-ui/src/general.css @@ -86,3 +86,11 @@ padding-left: 0.6rem; width: auto; } + +pre { + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; +} \ No newline at end of file