@@ -1,7 +1,7 @@
11import { crypto } from 'bitcoinjs-lib';
22import { ecdsaSign } from 'secp256k1';
33import Web3 from 'web3';
4−import { hexToBytes, utf8ToHex } from 'web3-utils';
4+import { hexToBytes } from 'web3-utils';
55import { hashPersonalMessage } from '@ethereumjs/util';
66import { WALLET_TYPES } from './constants';
77import BridgeWallet from './types/BridgeWallet';
@@ -76,11 +76,10 @@ const getMetamaskAuthToken = ({ address, web3 }: MetamaskAuthTokenArgs) => {
7676 // but web3.eth.personal.sign hits it semi-reliably?
7777 // no idea what's going on, we should figure it out,
7878 // but we apply this bandaid to hopefully stop the bleeding.
79− //NOTE personal_sign expects hex-encoded data; signing the hex of
80− // MESSAGE yields the same signature as the other wallet types
8179 return window.ethereum.request({
8280 method: 'personal_sign',
83− params: [utf8ToHex(MESSAGE), address],
81+ params: [MESSAGE, address],
82+ from: address,
8483 });
8584 } else {
8685 return web3.eth.personal.sign(MESSAGE, address, '');