-
-
-
+
+
+
} />
}
}
const extractData = (item) => {
- let ret = { children: null, self: null }
+ const ret = { children: null, self: null }
if (item instanceof Array) {
ret.children = item.map((item, index) => ({ key: index, value: item }))
@@ -121,16 +121,16 @@ export const ContractSelection = (props: ContractSelectionProps) => {
if (details[propertyName] !== '') {
try {
node =
- { (typeof details[propertyName] === 'object') ?
-
- {
- Object.keys(details[propertyName]).map((innerkey) => renderData(details[propertyName][innerkey], innerkey, innerkey))
- }
- :
- {
- Object.keys(JSON.parse(details[propertyName])).map((innerkey) => renderData(JSON.parse(details[propertyName])[innerkey], innerkey, innerkey))
- }
-
+ { (typeof details[propertyName] === 'object')
+ ?
+ {
+ Object.keys(details[propertyName]).map((innerkey) => renderData(details[propertyName][innerkey], innerkey, innerkey))
+ }
+ :
+ {
+ Object.keys(JSON.parse(details[propertyName])).map((innerkey) => renderData(JSON.parse(details[propertyName])[innerkey], innerkey, innerkey))
+ }
+
}
// catch in case the parsing fails.
} catch (e) {
@@ -147,7 +147,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
const details = () => {
if (!selectedContract) throw new Error('No contract compiled yet')
-
+
const help = {
Assembly: 'Assembly opcodes describing the contract including corresponding solidity source code',
Opcodes: 'Assembly opcodes describing the contract',
@@ -168,7 +168,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
Object.keys(contractProperties).map((propertyName, index) => {
const copyDetails =
const questionMark =
-
+
return (
{ propertyName } { copyDetails } { questionMark }
{ insertValue(contractProperties, propertyName) }
@@ -187,8 +187,8 @@ export const ContractSelection = (props: ContractSelectionProps) => {
return (
// define swarm logo
<>
- { contractList.length ?
-
+ { contractList.length
+ ?
{/* Select Compiler Version */}
@@ -197,7 +197,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
-