mirror of https://github.com/embarklabs/embark.git
Add bytecode and abi to contract overview
This commit is contained in:
parent
c4635dd6bd
commit
68deca9fea
|
@ -36,6 +36,22 @@ const Contract = ({contract, match}) => {
|
||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
</Card>
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<Card.Header>
|
||||||
|
<Card.Title>ABI</Card.Title>
|
||||||
|
</Card.Header>
|
||||||
|
<Card.Body>
|
||||||
|
<pre>{JSON.stringify(contract.abiDefinition)}</pre>
|
||||||
|
</Card.Body>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<Card.Header>
|
||||||
|
<Card.Title>Bytecode</Card.Title>
|
||||||
|
</Card.Header>
|
||||||
|
<Card.Body>
|
||||||
|
{contract.runtimeBytecode}
|
||||||
|
</Card.Body>
|
||||||
|
</Card>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid.Row>
|
</Grid.Row>
|
||||||
</Page.Content>
|
</Page.Content>
|
||||||
|
|
|
@ -86,3 +86,11 @@
|
||||||
padding-left: 0.6rem;
|
padding-left: 0.6rem;
|
||||||
width: auto;
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue