File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
api/background/handlers/ethereum Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ export const accountsHandler = async (
14
14
} ;
15
15
16
16
const isConnected = await ApiUtils . isHostConnected ( message . host ) ;
17
- const isUnlocked = ApiUtils . isUnlocked ( ) ;
18
- if ( ! isConnected || ! isUnlocked ) {
17
+ if ( ! isConnected ) {
19
18
sendResponse ( ApiUtils . createApiResponse ( message . id , [ ] ) ) ;
20
19
return ;
21
20
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const isMatchCurrentAddress = async (address: string) => {
13
13
const publicKeyHex = account . publicKeys [ 0 ] ;
14
14
const uncompressedHex = uncompressPublicKey ( publicKeyHex ) ;
15
15
const ethAddress = publicKeyToAddress ( uncompressedHex ) ;
16
- return address === ethAddress ;
16
+ return address . toLowerCase ( ) === ethAddress . toLowerCase ( ) ;
17
17
} ;
18
18
19
19
export const uncompressPublicKey = ( publicKey : string ) => {
You can’t perform that action at this time.
0 commit comments