Merge branch 'master' of https://github.com/ethereum/remix-project into newFEdesktop

pull/4422/head
bunsenstraat 1 year ago
commit ea79ca6487
  1. 2
      apps/remix-ide/src/app/plugins/vyper-compilation-details.tsx
  2. 10
      libs/remix-ui/vyper-compile-details/src/lib/vyperCompile.tsx

@ -51,7 +51,7 @@ export class VyperCompilationDetailsPlugin extends ViewPlugin {
async showDetails(sentPayload: any) {
const contractName = Object.entries(sentPayload).find(([key, value]) => key )
await this.call('tabs', 'focus', 'vyperCompilationDetails')
this.profile.displayName = `${contractName}`
this.profile.displayName = `${contractName[0]}`
this.payload = sentPayload
const active = await this.call('theme', 'currentTheme')
if (active.quality === 'dark') {

@ -58,18 +58,22 @@ export default function VyperCompile({result, theme, themeStyle}: VyperCompilePr
<Tab eventKey={content.eventKey} title={content.tabHeadingText} as={'span'} key={`${index}-${content.eventKey}`}>
<div className="d-flex flex-column w-75 justify-content-center mx-auto rounded-2">
<CopyToClipboard getContent={() => (content.eventKey !== 'abi' ? content.tabPayload : JSON.stringify(result['abi']))}>
<Button variant="info" className="copy mt-3 ml-2" data-id={content.eventKey === 'abi' ? 'copy-abi' : ''}>
<Button
variant="info"
className="copy mt-3 ml-2"
data-id={content.eventKey === 'abi' ? 'copy-abi' : ''}
>
<span className="far fa-copy mr-2"></span>
{content.tabButtonText()}
</Button>
</CopyToClipboard>
{content.eventKey === 'abi' ? (
<div className="my-3">
<JSONTree
{JSON.stringify(content?.tabPayload)?.length > 1 ? <JSONTree
src={content.tabPayload as ABIDescription[]}
theme={theme}
style={themeStyle}
/>
/> : null}
</div>
) : (
<div className="w-100 mt-2 p-2 mx-auto">

Loading…
Cancel
Save