From 63abe13990fc5e2ee19b40c808fea8cd08dbe319 Mon Sep 17 00:00:00 2001 From: Uniswap Labs Service Account Date: Thu, 23 Jan 2025 00:20:05 +0000 Subject: [PATCH] ci(release): publish latest release --- RELEASE | 14 +++++++------- VERSION | 2 +- .../web/src/components/Web3Provider/index.tsx | 19 ++++++++++--------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/RELEASE b/RELEASE index fa4b97da512..bbca00a5f67 100644 --- a/RELEASE +++ b/RELEASE @@ -1,6 +1,6 @@ IPFS hash of the deployment: -- CIDv0: `QmcUczsWCfUaERJpptB48Rbmnnzg1Jagkhsd1DryHJy4jq` -- CIDv1: `bafybeigsbzkda6qv7qqund7okatflwxyy24dqdoatcyyooibzm6xawwooa` +- CIDv0: `QmSmvQMNhi4BXMeBcTtjzRqkSkUM6BrLUjoiF4iqydKdxD` +- CIDv1: `bafybeicb5abvqxhmsyufrrsh67h2q6cdomr673nes6umxcq2uvnmcnglei` The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). @@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway. Your Uniswap settings are never remembered across different URLs. IPFS gateways: -- https://bafybeigsbzkda6qv7qqund7okatflwxyy24dqdoatcyyooibzm6xawwooa.ipfs.dweb.link/ -- https://bafybeigsbzkda6qv7qqund7okatflwxyy24dqdoatcyyooibzm6xawwooa.ipfs.cf-ipfs.com/ -- [ipfs://QmcUczsWCfUaERJpptB48Rbmnnzg1Jagkhsd1DryHJy4jq/](ipfs://QmcUczsWCfUaERJpptB48Rbmnnzg1Jagkhsd1DryHJy4jq/) +- https://bafybeicb5abvqxhmsyufrrsh67h2q6cdomr673nes6umxcq2uvnmcnglei.ipfs.dweb.link/ +- https://bafybeicb5abvqxhmsyufrrsh67h2q6cdomr673nes6umxcq2uvnmcnglei.ipfs.cf-ipfs.com/ +- [ipfs://QmSmvQMNhi4BXMeBcTtjzRqkSkUM6BrLUjoiF4iqydKdxD/](ipfs://QmSmvQMNhi4BXMeBcTtjzRqkSkUM6BrLUjoiF4iqydKdxD/) -### 5.67.1 (2025-01-22) +### 5.67.2 (2025-01-23) ### Bug Fixes -* **web:** 2 sec poll flag fix (#15399) 955a354 +* **web:** send updated user property chainId (#15417) 731a83d diff --git a/VERSION b/VERSION index 920df45d556..f67efc94b4b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -web/5.67.1 \ No newline at end of file +web/5.67.2 \ No newline at end of file diff --git a/apps/web/src/components/Web3Provider/index.tsx b/apps/web/src/components/Web3Provider/index.tsx index 24cf6b9622d..01edaa93ba7 100644 --- a/apps/web/src/components/Web3Provider/index.tsx +++ b/apps/web/src/components/Web3Provider/index.tsx @@ -75,6 +75,12 @@ export function Web3ProviderUpdater() { useEffect(() => { const chainChanged = previousConnectedChainId && previousConnectedChainId !== account.chainId if (chainChanged) { + if (account.address && account.chainId) { + // Should also update user property for chain_id when user switches chains + setUserProperty(CustomUserProperties.CHAIN_ID, account.chainId) + setUserProperty(CustomUserProperties.ALL_WALLET_CHAIN_IDS, account.chainId, true) + } + sendAnalyticsEvent(InterfaceEventName.CHAIN_CHANGED, { result: WalletConnectionResult.SUCCEEDED, wallet_address: account.address, @@ -90,6 +96,8 @@ export function Web3ProviderUpdater() { const previousAccount = usePrevious(account.address) const [connectedWallets, addConnectedWallet] = useConnectedWallets() useEffect(() => { + // User properties *must* be set before sending corresponding event properties, + // so that the event contains the correct and up-to-date user properties. if (account.address && account.address !== previousAccount) { const walletName = connector?.name ?? 'Network' const amplitudeWalletType = walletTypeToAmplitudeWalletType(connector?.type) @@ -108,18 +116,11 @@ export function Web3ProviderUpdater() { logger.warn('Web3Provider', 'Updater', 'Failed to get client version', error) }) - // User properties *must* be set before sending corresponding event properties, - // so that the event contains the correct and up-to-date user properties. setUserProperty(CustomUserProperties.WALLET_ADDRESS, account.address) setUserProperty(CustomUserProperties.ALL_WALLET_ADDRESSES_CONNECTED, account.address, true) setUserProperty(CustomUserProperties.WALLET_TYPE, amplitudeWalletType) - if (account.chainId) { - setUserProperty(CustomUserProperties.CHAIN_ID, account.chainId) - setUserProperty(CustomUserProperties.ALL_WALLET_CHAIN_IDS, account.chainId, true) - } - const walletConnectedProperties = { result: WalletConnectionResult.SUCCEEDED, wallet_address: account.address, @@ -167,11 +168,11 @@ export function Web3ProviderUpdater() { } }, [ account.address, - addConnectedWallet, - currentPage, account.chainId, + addConnectedWallet, connectedWallets, connector, + currentPage, previousAccount, provider, trackConversions,