diff --git a/packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx b/packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx index e82ff6b18..85059986f 100644 --- a/packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx +++ b/packages/examples/sdk-frontend-react/src/app/ChatUITest/ChatViewComponent.tsx @@ -13,7 +13,7 @@ const ChatViewComponentTest = () => { return (

Chat UI Test page

- {console.log('in close')}} /> + {/* {console.log('in close')}} /> */} {/* {console.log('in close')}} modalBackground={MODAL_BACKGROUND_TYPE.OVERLAY} modalPositionType={MODAL_POSITION_TYPE.RELATIVE}/> */} diff --git a/packages/examples/sdk-frontend-react/src/app/app.tsx b/packages/examples/sdk-frontend-react/src/app/app.tsx index aa533e646..928852545 100644 --- a/packages/examples/sdk-frontend-react/src/app/app.tsx +++ b/packages/examples/sdk-frontend-react/src/app/app.tsx @@ -220,7 +220,7 @@ const checkForWeb3Data = ({ export function App() { const { account, library, active, chainId } = useWeb3React(); - const [env, setEnv] = useState(ENV.PROD); + const [env, setEnv] = useState(ENV.DEV); const [isCAIP, setIsCAIP] = useState(false); const [signer, setSigner] = useState(); diff --git a/packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx b/packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx index 6b960d7ae..e0bb7f1a2 100644 --- a/packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx +++ b/packages/uiweb/src/lib/components/chat/CreateGroup/ConditionsComponent.tsx @@ -106,7 +106,7 @@ const CriteriaSection = ({ criteria }: { criteria: ConditionData }) => { const [tokenSymbol] = useTokenSymbolLoader(criteria); return ( -
+
{ {criteria?.data?.['amount']} {tokenSymbol} - + { NETWORK_ICON_DETAILS[ criteria?.data?.['contract'].split( diff --git a/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx b/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx index 7a38fed61..c68eb8557 100644 --- a/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx +++ b/packages/uiweb/src/lib/components/chat/MessageInput/MessageInput.tsx @@ -228,16 +228,13 @@ export const MessageInput: React.FC = ({ }, [chatId, pgpPrivateKey, account, env]); useEffect(() => { - console.log('in useEffect') - console.log(chatFeed) if (!account && !env && !chatId) return; if (account && env && chatId && chatFeed && chatFeed?.groupInformation) { setIsMember(checkIfMember(chatFeed, account)); setIsRules(checkIfAccessVerifiedGroup(chatFeed)); } }, [chatId, chatFeed, account, env]); -console.log(isMember) -console.log(checkIfMember(chatFeed, account!)) + const addEmoji = (emojiData: EmojiClickData, event: MouseEvent): void => { setTypedMessage(typedMessage + emojiData.emoji); setShowEmojis(false); diff --git a/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx b/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx index fb9d4c21a..c19731768 100644 --- a/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx +++ b/packages/uiweb/src/lib/components/chat/constants/chainDetails.tsx @@ -18,9 +18,9 @@ const createSVGIcon = (element:any, chainName: string) => { }; export const NETWORK_ICON_DETAILS = { - 5: { - label: 'ETHEREUM GOERLI', - icon: createSVGIcon(, 'Ethereum Goerli'), + 11155111: { + label: 'ETHEREUM SEPOLIA', + icon: createSVGIcon(, 'Ethereum Sepolia'), }, 1: { label: 'ETHEREUM MAINNET', diff --git a/packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts b/packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts index fb1a8c845..ccea261a3 100644 --- a/packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts +++ b/packages/uiweb/src/lib/components/chat/helpers/tokenGatedGroup.ts @@ -132,13 +132,11 @@ const validateTokenData = async (condition:Rule):Promise { return getRpcURL("optimism-mainnet", key); case 56: return "https://bsc-dataseed.binance.org/"; - case 5: - return getRpcURL("goerli", key); + case 11155111: + return getRpcURL("sepolia", key); case 420: return getRpcURL("optimism-goerli", key); case 80001: diff --git a/packages/uiweb/src/lib/components/chat/reusables/Button.tsx b/packages/uiweb/src/lib/components/chat/reusables/Button.tsx index ee928cbc4..6bcd34ef9 100644 --- a/packages/uiweb/src/lib/components/chat/reusables/Button.tsx +++ b/packages/uiweb/src/lib/components/chat/reusables/Button.tsx @@ -45,7 +45,6 @@ export const Button: React.FC = (props) => { const theme = useContext(ThemeContext); const { onClick, width, height, customStyle } = props; - console.log(customStyle) return ( diff --git a/packages/uiweb/src/lib/components/chat/reusables/Checkbox.tsx b/packages/uiweb/src/lib/components/chat/reusables/Checkbox.tsx index 41d42f635..c6378fb49 100644 --- a/packages/uiweb/src/lib/components/chat/reusables/Checkbox.tsx +++ b/packages/uiweb/src/lib/components/chat/reusables/Checkbox.tsx @@ -12,7 +12,6 @@ export interface ICheckboxProps { export const Checkbox = (props: ICheckboxProps) => { const theme = useContext(ThemeContext); -console.log(props) return ( diff --git a/packages/uiweb/src/lib/components/chat/reusables/DropDown.tsx b/packages/uiweb/src/lib/components/chat/reusables/DropDown.tsx index b2ad919d8..e118d8af2 100644 --- a/packages/uiweb/src/lib/components/chat/reusables/DropDown.tsx +++ b/packages/uiweb/src/lib/components/chat/reusables/DropDown.tsx @@ -56,7 +56,6 @@ function Dropdown({ document.body.removeChild(el); } }; - console.log(dropdownValues) return ( <> {dropdownValues.map((dropdownValue) => diff --git a/packages/uiweb/src/lib/config/constants.ts b/packages/uiweb/src/lib/config/constants.ts index 8ab804f59..def327d3b 100644 --- a/packages/uiweb/src/lib/config/constants.ts +++ b/packages/uiweb/src/lib/config/constants.ts @@ -35,6 +35,7 @@ export const NETWORK_DETAILS = { 420: {}, }; +//todo: need to change o sepolia export const CoreContractChainId = { prod: 1, dev: 5, diff --git a/packages/uiweb/src/lib/hooks/chat/useVerifyAccessControl.ts b/packages/uiweb/src/lib/hooks/chat/useVerifyAccessControl.ts index 4d470796c..ae6670c19 100644 --- a/packages/uiweb/src/lib/hooks/chat/useVerifyAccessControl.ts +++ b/packages/uiweb/src/lib/hooks/chat/useVerifyAccessControl.ts @@ -30,7 +30,6 @@ const useVerifyAccessControl = () => { }); setLoading(false); if (response.chat === false) { - console.log('in hereeeee response false') setVerificationSuccessfull(false); } else if (response.chat === true) { setVerified(true);