Skip to content

fix: notify the client when native balance goes to zero#35739

Merged
xavier-brochard merged 1 commit intomainfrom
solana-snap-notify-client-account-zero-balance
Sep 9, 2025
Merged

fix: notify the client when native balance goes to zero#35739
xavier-brochard merged 1 commit intomainfrom
solana-snap-notify-client-account-zero-balance

Conversation

@xavier-brochard
Copy link
Copy Markdown
Contributor

@xavier-brochard xavier-brochard commented Sep 8, 2025

Description

This PR bumps the Solana snap to its latest version.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Notify client when native SOL balance reaches zero (#519)

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 8, 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 metamaskbot added the team-networks PRs from the Networks team label Sep 8, 2025
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​solana-wallet-snap@​2.3.7 ⏵ 2.3.8100 +110088 +1100 +1100

View full report

@metamaskbot
Copy link
Copy Markdown
Collaborator

📊 Page Load Benchmark Results

Current Commit: 144f004 | Date: 9/8/2025

📄 https://metamask.github.io/test-dapp/

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.30s (±66ms) 🟡 | historical mean value: 1.31s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 973ms (±64ms) 🟢 | historical mean value: 986ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 88ms (±18ms) 🟢 | historical mean value: 93ms ⬇️ (historical data)
📈 Detailed Results
Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.30s 66ms 1.26s 1.74s 1.36s 1.74s
domContentLoaded 973ms 64ms 940ms 1.42s 1.02s 1.42s
firstPaint 88ms 18ms 72ms 176ms 140ms 176ms
firstContentfulPaint 88ms 18ms 72ms 176ms 140ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

Results generated automatically by MetaMask CI

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [144f004]
UI Startup Metrics (1209 ± 54 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1209110913735412441304
load104792912055310831124
domContentLoaded103892111745310741118
domInteractive17144151732
firstPaint59690119842410601125
backgroundConnect2442302869247257
firstReactRender2517123112537
getState14482101533
initialActions50214612
loadScripts80368792651838885
setupStore962031017
WebpackHomeuiStartup20061518251424321412438
load16211214195618517391877
domContentLoaded16111200193218417281864
domInteractive171292141458
firstPaint1706443464198311
backgroundConnect3517351443059
firstReactRender85363466682291
getState3552927615285
initialActions52194614
loadScripts16071197192018317261853
setupStore1262741318
FirefoxBrowserifyHomeuiStartup14101201179110514671619
load1228105414448112901380
domContentLoaded1228105414448112901380
domInteractive1013329048106219
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect3519109173681
firstReactRender28236662937
getState6243669
initialActions511982037
loadScripts1201103714258212681347
setupStore958111724
WebpackHomeuiStartup15461352190114016521811
load13231142166212314321545
domContentLoaded13221141166212314321545
domInteractive102323136194268
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect30206073544
firstReactRender43346154752
getState6319269
initialActions501431536
loadScripts13001123164112414101526
setupStore11613517918
Benchmark value 244 exceeds gate value 10 for chrome browserify home mean backgroundConnect
Benchmark value 25 exceeds gate value 23 for chrome browserify home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for chrome browserify home mean initialActions
Benchmark value 258 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 12 exceeds gate value 1.2 for chrome browserify home p95 initialActions
Benchmark value 35 exceeds gate value 29 for chrome webpack home mean getState
Benchmark value 58 exceeds gate value 57 for chrome webpack home p95 domInteractive
Benchmark value 285 exceeds gate value 195 for chrome webpack home p95 getState
Benchmark value 14 exceeds gate value 7 for chrome webpack home p95 initialActions
Benchmark value 1410 exceeds gate value 1405 for firefox browserify home mean uiStartup
Benchmark value 35 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 28 exceeds gate value 25 for firefox browserify home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for firefox browserify home mean initialActions
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 219 exceeds gate value 195 for firefox browserify home p95 domInteractive
Benchmark value 81 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 7 exceeds gate value 2 for firefox browserify home p95 initialActions
Benchmark value 102 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 30 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 44 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 5 exceeds gate value 1 for firefox webpack home mean initialActions
Benchmark value 268 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 52 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 6 exceeds gate value 2 for firefox webpack home p95 initialActions
Sum of mean exceeds: 285ms | Sum of p95 exceeds: 506.8ms
Sum of all benchmark exceeds: 791.8ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 43 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 10 Bytes (0%)

@xavier-brochard xavier-brochard added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit f4bf5e2 Sep 9, 2025
153 of 154 checks passed
@xavier-brochard xavier-brochard deleted the solana-snap-notify-client-account-zero-balance branch September 9, 2025 08:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2025
@metamaskbot metamaskbot added the release-13.4.0 Issue or pull request that will be included in release 13.4.0 label Sep 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.4.0 Issue or pull request that will be included in release 13.4.0 size-XS team-networks PRs from the Networks team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants