Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: formatChainIdToHex fails to parse evm caip chainIds #30848

Merged
merged 3 commits into from
Mar 7, 2025

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented Mar 7, 2025

Description

Action Completed metric event requires parsing a caip chainId to hex. This fails due to incorrectly checking the type of the CAIP reference

Open in GitHub Codespaces

Related issues

Fixes: #30842

Manual testing steps

  1. Open background logs
  2. Submit a bridge tx
  3. Check that batch network call for "Action Completed" is POSTed

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@micaelae micaelae marked this pull request as ready for review March 7, 2025 00:22
@metamaskbot metamaskbot added the team-swaps-and-bridge Team swaps and bridge label Mar 7, 2025
Copy link
Contributor

github-actions bot commented Mar 7, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Collaborator

Builds ready [4916f3d]
Page Load Metrics (1828 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint66520001758264127
domContentLoaded16592049180210048
load16782063182810048
domInteractive15156553617
backgroundConnect1193282211
firstReactRender1576362311
getState661232110
initialActions01000
loadScripts1244157913688742
setupStore86016168
uiStartup19202403209212258

@micaelae micaelae enabled auto-merge March 7, 2025 22:40
@micaelae micaelae added this pull request to the merge queue Mar 7, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [2d2bdbd]
Page Load Metrics (1961 ± 104 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint52623911888374180
domContentLoaded16292319190918991
load165224581961217104
domInteractive26117492814
backgroundConnect10254545426
firstReactRender14102342412
getState6109282613
initialActions01000
loadScripts12091711145614871
setupStore762262010
uiStartup182935122282352169
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: -101 Bytes (-0.00%)

Merged via the queue into main with commit 48ef8da Mar 7, 2025
74 checks passed
@micaelae micaelae deleted the fix-30842-parse-caip-chainid branch March 7, 2025 23:29
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2025
@metamaskbot metamaskbot added the release-12.15.0 Issue or pull request that will be included in release 12.15.0 label Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.15.0 Issue or pull request that will be included in release 12.15.0 team-swaps-and-bridge Team swaps and bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Bridge throws an uncaught metrics error on tx completion
4 participants