From a9924f32477abfe7336a98f38e51ee5f96ae54cd Mon Sep 17 00:00:00 2001 From: jawndiego Date: Mon, 24 Jun 2024 17:04:49 -0400 Subject: [PATCH] chain id back to optimism main --- apps/site/components/client/EditUsernameDialog.tsx | 2 +- apps/site/components/client/UsernameDialog.tsx | 2 +- apps/site/config/syndicateClient.ts | 2 +- packages/scrypt/constants/addresses.ts | 6 +----- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/site/components/client/EditUsernameDialog.tsx b/apps/site/components/client/EditUsernameDialog.tsx index be7129eb..97f6e0a3 100644 --- a/apps/site/components/client/EditUsernameDialog.tsx +++ b/apps/site/components/client/EditUsernameDialog.tsx @@ -107,7 +107,7 @@ export function EditUsernameDialog({ open, setOpen }: UsernameDialogProps) { const ID_REGISTRY_EIP_712_DOMAIN = { name: 'River IdRegistry', version: '1', - chainId: 11155420, + chainId: 10, verifyingContract: addresses.idRegistry.optimism, } as const const REGISTER_TYPE = [ diff --git a/apps/site/components/client/UsernameDialog.tsx b/apps/site/components/client/UsernameDialog.tsx index f35b7406..24d749ed 100644 --- a/apps/site/components/client/UsernameDialog.tsx +++ b/apps/site/components/client/UsernameDialog.tsx @@ -102,7 +102,7 @@ export function UsernameDialog({ open, setOpen }: UsernameDialogProps) { const ID_REGISTRY_EIP_712_DOMAIN = { name: 'River IdRegistry', version: '1', - chainId: 11155420, + chainId: 10, verifyingContract: addresses.idRegistry.optimism, } as const const REGISTER_TYPE = [ diff --git a/apps/site/config/syndicateClient.ts b/apps/site/config/syndicateClient.ts index cd8d5346..7b722f26 100644 --- a/apps/site/config/syndicateClient.ts +++ b/apps/site/config/syndicateClient.ts @@ -58,7 +58,7 @@ export const generatePostTxnInput = (post: Post) => ({ export const generateIdRegistryInput = (register: Register) => ({ projectId: projectIdRegistry, contractAddress: addresses.idRegistry.optimism, - chainId: 11155420, + chainId: 10, functionSignature: 'registerFor(address to, address recovery, uint256 deadline, bytes sig)', args: { diff --git a/packages/scrypt/constants/addresses.ts b/packages/scrypt/constants/addresses.ts index c2eb551e..32b8828b 100644 --- a/packages/scrypt/constants/addresses.ts +++ b/packages/scrypt/constants/addresses.ts @@ -9,12 +9,8 @@ type AddressBook = { } export const addresses: AddressBook = { - // idRegistry: { - // optimism: '0x44192479891D358Ec917765dbF6472B916DC9A0C', - // }, - // optimism sepolia idRegistry: { - optimism: '0xc5799be72019c0b79a176bb386644b8be3b58590', + optimism: '0x44192479891D358Ec917765dbF6472B916DC9A0C', }, postGateway: { nova: '0x423a602F5e551A25b28eb33eB56B961590aD5290',