Repository navigation
feat(e2e): wire Tron local node into fixtures - #44152
Conversation
|
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. |
✨ Files requiring CODEOWNER review ✨🧪 @MetaMask/qa (1 files, +9 -1)
|
Builds ready [c07f754]
⚡ Performance Benchmarks (Total: 🟢 17 pass · 🟡 7 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
845f628 to
f2b8b96
Compare
c07f754 to
bf57197
Compare
Builds ready [bf57197]
⚡ Performance Benchmarks (Total: 🟢 18 pass · 🟡 6 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bf57197. Configure here.
f2b8b96 to
85c677a
Compare
bf57197 to
bb730e5
Compare
Builds ready [bb730e5]
⚡ Performance Benchmarks (Total: 🟢 20 pass · 🟡 3 warn · 🔴 1 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
bb730e5 to
aca49fc
Compare
Builds ready [aca49fc]
⚡ Performance Benchmarks (Total: 🟢 17 pass · 🟡 6 warn · 🔴 1 fail)
Bundle sizes
|
TronNode does not implement getBalance, so withFixtures must not call it when the first local node is not Anvil.
|
Builds ready [c91ac63]
⚡ Performance Benchmarks (Total: 🟢 16 pass · 🟡 7 warn · 🔴 1 fail)
Bundle sizes
|




Description
This PR wires the
'tron'case intowithFixturesand adds a smoke script so a Tron local node can be started and consumed from a test fixture. It is one reviewable step of a linear stack and replaces #44139. Together with PRs 03-05 it supersedes #43722. Based on a freshmainand under 1000 changed lines.Changelog
CHANGELOG entry: null
Related issues
Part of the local-blockchain E2E initiative (WPN-536).
Replaces #44139; together with the preceding Tron node PRs (config, seeder, bootstrap) supersedes #43722.
Manual testing steps
yarn build:test'tron'fixture case boots a local node and tears it down cleanly.Screenshots/Recordings
N/A — test infrastructure only, no user-facing UI change.
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Test-only fixture and smoke tooling; the Anvil guard is a small behavioral fix for mixed local-node fixtures.
Overview
E2E fixtures can now boot a Tron local node via
localNodeOptions: 'tron'(or{ type: 'tron', options: ... }), using the existingTronNodeseeder alongside the Anvil path.Accounts API v5 native-balance sync from
localNodes[0]is limited to Anvil only, so a Tron-first fixture no longer callsgetBalance()on a non-EVM node.A new
test:e2e:smoke:local-node-portsscript starts two java-tron networks on spaced ports, hitsgetnowblock, and tears down—sanity check for port allocation and multi-node startup.Reviewed by Cursor Bugbot for commit c91ac63. Bugbot is set up for automated code reviews on this repo. Configure here.