diff --git a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts index 5679d2aee4..c6b3418a00 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts @@ -250,7 +250,8 @@ export const loadAddress = (plugin: RunTab, dispatch: React.Dispatch, contr return dispatch(displayNotification('Alert', error, 'OK', null)) } if (loadType === 'abi') { - return addInstance(dispatch, { abi, address, name: '' }) + const contractData = { name: '', abi, contract: {file: plugin.REACT_API.contracts.currentFile}} as ContractData + return addInstance(dispatch, { contractData, address, name: '' }) } else if (loadType === 'instance') { if (!contract) return dispatch(displayPopUp('No compiled contracts found.')) const currentFile = plugin.REACT_API.contracts.currentFile