Skip to content

Commit

Permalink
Sign over Base chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed Jul 10, 2024
1 parent 8e9f414 commit 4c8249d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umbra-js/src/classes/Umbra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c8249d

Please sign in to comment.