Skip to content

Commit ff5d3e2

Browse files
committed
uneeded code
1 parent 6591890 commit ff5d3e2

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

apps/remix-ide/src/blockchain/blockchain.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,6 @@ export class Blockchain extends Plugin {
623623
return this.executionContext.getProviderObject()
624624
}
625625

626-
getInjectedWeb3Address() {
627-
return this.executionContext.getSelectedAddress()
628-
}
629-
630626
/**
631627
* return the fork name applied to the current environment
632628
* @return {String} - fork name

apps/remix-ide/src/blockchain/execution-context.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export class ExecutionContext {
4949
return this.customNetWorks[this.executionContext]
5050
}
5151

52-
getSelectedAddress () {
53-
return injectedProvider ? injectedProvider.selectedAddress : null
54-
}
55-
5652
getCurrentFork () {
5753
return this.currentFork
5854
}

libs/remix-ui/run-tab/src/lib/actions/account.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export const fillAccountsList = async (plugin: RunTab, dispatch: React.Dispatch<
4949
loadedAccounts[account] = shortenAddress(account, balance)
5050
if (safeAddresses.length && safeAddresses.includes(account)) loadedAccounts[account] = `[SMART] ${loadedAccounts[account]}`
5151
}
52-
if (provider && provider.startsWith('injected')) {
53-
const selectedAddress = plugin.blockchain.getInjectedWeb3Address()
54-
if (selectedAddress && !(Object.keys(loadedAccounts).includes(toChecksumAddress(selectedAddress)))) setAccount(dispatch, null)
55-
}
5652
dispatch(fetchAccountsListSuccess(loadedAccounts))
5753
} catch (e) {
5854
dispatch(fetchAccountsListFailed(e.message))

libs/remix-ui/run-tab/src/lib/types/blockchain.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export class Blockchain extends Plugin<any, any> {
4141
changeExecutionContext(context: any, confirmCb: any, infoCb: any, cb: any): Promise<any>;
4242
detectNetwork(cb: any): void;
4343
getProvider(): any;
44-
getInjectedWeb3Address(): any;
4544
/**
4645
* return the fork name applied to the current environment
4746
* @return {String} - fork name

0 commit comments

Comments
 (0)