fix foundry integration

pull/4896/head
yann300 5 months ago committed by Aniket
parent fad8d6f9cc
commit c70fdde94e
  1. 11
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx
  2. 3
      libs/remix-ui/run-tab/src/lib/css/run-tab.css
  3. 1
      libs/remixd/src/services/foundryClient.ts

@ -391,7 +391,6 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
/>
</label>
)}
</div>
{props.remixdActivated ? (
<CustomTooltip
placement={'right'}
@ -403,18 +402,14 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
</span>
}
>
<button
className="btn d-flex py-0"
onClick={(_) => {
<i style={{ cursor: 'pointer' }} onClick={(_) => {
props.syncContracts()
_paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet'])
}}
>
<i style={{ cursor: 'pointer' }} className="fa fa-refresh mr-2 mt-2" aria-hidden="true"></i>
</button>
}} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"></i>
</CustomTooltip>
) : null}
</div>
</div>
<div className="udapp_subcontainer">
<CustomTooltip placement={'auto-end'} tooltipClasses="text-nowrap text-left" tooltipId="remixUdappContractNamesTooltip" tooltipText={contractOptions.title}>
<select

@ -25,6 +25,9 @@
.udapp_settingsCompiledBy {
margin-bottom: 4px;
}
.udapp_syncFramework {
margin-bottom: 4px;
}
.udapp_environment {
display: flex;
align-items: center;

@ -123,7 +123,6 @@ export class FoundryClient extends PluginClient {
compilationResult.inputSources.target = file
await this.readContract(path, compilationResult, cache)
this.emit('compilationFinished', compilationResult.compilationTarget, { sources: compilationResult.input }, 'soljson', compilationResult.output, compilationResult.solcVersion)
this.call('compilerArtefacts' as any, 'saveCompilerAbstract', file, new CompilerAbstract(compilationResult.solcVersion, compilationResult.output, compilationResult.inputSources))
}
clearTimeout(this.logTimeout)

Loading…
Cancel
Save