@@ -15,11 +15,11 @@ import {
1515 NONCUSTODIAL_WALLETS,
1616 WALLET_TYPES,
1717} from 'lib/constants';
18−import { publicToAddress } from 'ethereumjs-util';
1918import { getAuthToken } from 'lib/authToken';
2019import { BRIDGE_ERROR } from 'lib/error';
2120
2221import { useNetwork } from 'store/network';
22+import { bufferedPublicKeyToAddress } from 'lib/utils/crypto';
2323
2424export const WalletContext = createContext(null);
2525
@@ -94,7 +94,7 @@ function _useWallet(initialWallet = Nothing(), initialMnemonic = Nothing()) {
9494 // force that public addresses are derived for each wallet
9595 // NOTE wallet is Maybe<> and .map is Maybe#map
9696 wallet.map(wal => {
97− wal.address = wal.address || publicToAddress(wal.publicKey).toString('hex');
97+ wal.address = wal.address || bufferedPublicKeyToAddress(wal.publicKey);
9898 return wal;
9999 });
100100