Add bytecode and abi to contract overview

This commit is contained in:
Anthony Laibe 2018-10-02 13:08:47 +01:00 committed by Pascal Precht
parent c4635dd6bd
commit 68deca9fea
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 24 additions and 0 deletions

View File

@ -36,6 +36,22 @@ const Contract = ({contract, match}) => {
</Table.Body>
</Table>
</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.Row>
</Page.Content>

View File

@ -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;
}