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> </span>
} }
> >
<i style={{ cursor: 'pointer' }} onClick={(_) => { <i style={{ cursor: 'pointer' }} onClick={(_) => {
props.syncContracts() props.syncContracts()
_paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet']) _paq.push(['trackEvent', 'udapp', 'syncContracts', compilationSource ? compilationSource : 'compilationSourceNotYetSet'])
}} className="udapp_syncFramework udapp_icon fa fa-refresh" aria-hidden="true"></i> }} 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', '') const contractName = basename(path).replace('.json', '')
let sourcePath = '' let sourcePath = ''
console.log('feedContractArtifactFile', contentJSON)
for (const key in contentJSON.metadata.settings.compilationTarget) { for (const key in contentJSON.metadata.settings.compilationTarget) {
if (contentJSON.metadata.settings.compilationTarget[key] === contractName) { if (contentJSON.metadata.settings.compilationTarget[key] === contractName) {
sourcePath = key sourcePath = key

Loading…
Cancel
Save