pull/4896/head
yann300 5 months ago committed by Aniket
parent ad9838c823
commit 88b5bc3e87
  1. 2
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx
  2. 1
      libs/remixd/src/services/foundryClient.ts

@ -403,7 +403,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
</span>
}
>
<i style={{ cursor: 'pointer' }} onClick={(_) => {
<i style={{ cursor: 'pointer' }} onClick={(_) => {
props.syncContracts()
_paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet'])
}} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"></i>

@ -171,6 +171,7 @@ export class FoundryClient extends PluginClient {
const contractName = basename(path).replace('.json', '')
let sourcePath = ''
console.log('feedContractArtifactFile', contentJSON)
for (const key in contentJSON.metadata.settings.compilationTarget) {
if (contentJSON.metadata.settings.compilationTarget[key] === contractName) {
sourcePath = key

Loading…
Cancel
Save