diff --git a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx index 39bd642dcb..1fe52f04c3 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx @@ -403,7 +403,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) { } > - { + { props.syncContracts() _paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet']) }} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"> diff --git a/libs/remixd/src/services/foundryClient.ts b/libs/remixd/src/services/foundryClient.ts index 1fcdacc7d9..a53ff6cdfc 100644 --- a/libs/remixd/src/services/foundryClient.ts +++ b/libs/remixd/src/services/foundryClient.ts @@ -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