Skip to content

Commit

Permalink
refactor: format addr (#10905)
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Oct 8, 2023
1 parent a7d343a commit 4db53e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
recoverWalletFromMnemonicWords,
recoverWalletFromPrivateKey,
} from '../wallet/services/index.js'
import { ChainId } from '@masknet/web3-shared-evm'
import { ChainId, formatEthereumAddress } from '@masknet/web3-shared-evm'

export async function internal_wallet_restore(backup: NormalizedBackup.WalletBackup[]) {
const mnemonicWalletMap = new Map<
Expand All @@ -30,7 +30,7 @@ export async function internal_wallet_restore(backup: NormalizedBackup.WalletBac
if (!mnemonicId) continue

accounts.forEach((x) => {
mnemonicWalletMap.set(x.address, {
mnemonicWalletMap.set(formatEthereumAddress(x.address), {
mnemonicId,
derivationPath: x.derivationPath,
})
Expand Down

0 comments on commit 4db53e6

Please sign in to comment.