From 18bb5ac74565e748429cee9171a33496f2c79fb4 Mon Sep 17 00:00:00 2001 From: Josh Long Date: Tue, 19 Sep 2023 17:14:48 -0400 Subject: [PATCH] format account addr to eip-55 --- packages/auth-browser/src/lib/chains/eth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/auth-browser/src/lib/chains/eth.ts b/packages/auth-browser/src/lib/chains/eth.ts index 3b7571877a..8ab6182eb3 100644 --- a/packages/auth-browser/src/lib/chains/eth.ts +++ b/packages/auth-browser/src/lib/chains/eth.ts @@ -759,12 +759,12 @@ export const signAndSaveAuthMessage = async ({ const message: SiweMessage = new SiweMessage(preparedMessage); const body: string = message.prepareMessage(); - + const formattedAccount = getAddress(account); // -- 2. sign the message let signedResult: SignedMessage = await signMessage({ body, web3, - account, + account: formattedAccount, }); // -- 3. prepare auth message @@ -772,7 +772,7 @@ export const signAndSaveAuthMessage = async ({ sig: signedResult.signature, derivedVia: 'web3.eth.personal.sign', signedMessage: body, - address: getAddress(signedResult.address), + address: signedResult.address, }; // -- 4. store auth and a keypair in localstorage for communication with sgx