From 4c8249dec60ce1daab620c3743ea0773b591329e Mon Sep 17 00:00:00 2001 From: garyghayrat Date: Wed, 10 Jul 2024 16:45:26 -0400 Subject: [PATCH] Sign over Base chainId --- umbra-js/src/classes/Umbra.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbra-js/src/classes/Umbra.ts b/umbra-js/src/classes/Umbra.ts index 7271dfab..a5b42980 100644 --- a/umbra-js/src/classes/Umbra.ts +++ b/umbra-js/src/classes/Umbra.ts @@ -598,7 +598,7 @@ export class Umbra { const baseMessage = 'Sign this message to access your Umbra account.\n\nOnly sign this message for a trusted client!'; // prettier-ignore // Append chain ID if not mainnet to mitigate replay attacks - const { chainId } = await this.provider.getNetwork(); + const chainId = 8453; // Base; const message = chainId === 1 ? baseMessage : `${baseMessage}\n\nChain ID: ${chainId}`; // Get 65 byte signature from user using personal_sign