From 84bb23daabf20b1ef61b82056c54229ec5018d13 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 2 Feb 2022 10:50:06 +0100 Subject: [PATCH 1/3] fix lodash --- .../remix-ui/workspace/src/lib/reducers/workspace.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index a41365224b..cf3e3a1cbf 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -608,12 +608,12 @@ const fileAdded = (state: BrowserState, path: string): { [x: string]: Record Date: Thu, 3 Feb 2022 13:49:12 +0100 Subject: [PATCH 2/3] fix using load from abi --- .../remix-ui/run-tab/src/lib/actions/index.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/actions/index.ts b/libs/remix-ui/run-tab/src/lib/actions/index.ts index 25bbb89d93..848ea4ce0d 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/index.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/index.ts @@ -552,25 +552,25 @@ export const clearInstances = () => { } export const loadAddress = (contract: ContractData, address: string) => { - if (!contract) return dispatch(displayPopUp('No compiled contracts found.')) loadContractFromAddress(address, - (cb) => { - dispatch(displayNotification('At Address', `Do you really want to interact with ${address} using the current ABI definition?`, 'OK', 'Cancel', cb, null)) - }, - (error, loadType, abi) => { - if (error) { - return dispatch(displayNotification('Alert', error, 'OK', null)) - } - const compiler = plugin.REACT_API.contracts.contractList.find(item => item.alias === contract.name) - const contractData = getSelectedContract(contract.name, compiler.name) - - if (loadType === 'abi') { - return addInstance({ contractData, address, name: '' }) - } - addInstance({ contractData, address, name: contract.name }) - } - ) -} + (cb) => { + dispatch(displayNotification('At Address', `Do you really want to interact with ${address} using the current ABI definition?`, 'OK', 'Cancel', cb, null)) + }, + (error, loadType, abi) => { + if (error) { + return dispatch(displayNotification('Alert', error, 'OK', null)) + } + if (loadType === 'abi') { + return addInstance({ abi, address, name: '' }) + } else if (loadType === 'instance') { + if (!contract) return dispatch(displayPopUp('No compiled contracts found.')) + const compiler = plugin.REACT_API.contracts.contractList.find(item => item.alias === contract.name) + const contractData = getSelectedContract(contract.name, compiler.name) + return addInstance({ contractData, address, name: contract.name }) + } + } + ) + } export const getContext = () => { return plugin.blockchain.context() From 4e0746bee5c857191398873faa0ab170fbca4c23 Mon Sep 17 00:00:00 2001 From: David Disu Date: Fri, 4 Feb 2022 09:55:22 +0100 Subject: [PATCH 3/3] Bump patch version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 482474eb5f..12dfe6125f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "remix-project", - "version": "0.21.1-dev", + "version": "0.21.2-dev", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6b3b811098..16f81f670b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remix-project", - "version": "0.21.1-dev", + "version": "0.21.2-dev", "license": "MIT", "description": "Ethereum Remix Monorepo", "keywords": [