From c389b723f105a919f6603e7a4d8b79b9d6643e66 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 14 Mar 2024 18:39:48 +0530 Subject: [PATCH] fix abi file contract pinning --- libs/remix-ui/run-tab/src/lib/actions/deploy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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