You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
The canarySpec function now includes a case for 1020, but the default case still returns canaryLatest(). Ensure that this behavior is intentional and aligns with the expected logic for unsupported versions.
The getLatestSpecVersion function now returns 1020 for the canary network. Confirm that this change does not conflict with other parts of the system relying on the previous value 1013.
Why: Validating the network parameter ensures that only expected values are processed, reducing the risk of misuse or errors. This is a significant improvement in terms of input validation and code reliability.
Medium
Add fallback for invalid spec versions
Ensure that canaryLatest and canarySpec functions handle unexpected or invalid spec versions gracefully to avoid potential runtime errors.
Why: Adding a fallback for invalid spec versions improves the robustness of the canaryLatest and canarySpec functions, preventing potential runtime errors. However, the suggestion assumes the use of a default value ('default_value') without clarifying its appropriateness or context, which slightly reduces its impact.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement
Description
Added support for
v1020in the canary matrix.Updated
canaryLatestandgetLatestSpecVersionto includev1020.Adjusted export order in
canary.dartfor consistency.Introduced new file
v1020.dartfor canary matrix specifications.Changes walkthrough 📝
canary.dart
Add and reorder exports in `canary.dart`lib/consts/matrix/canary/canary.dart
v1020.dart.matrix.dart
Update matrix logic to include `v1020`lib/consts/matrix/matrix.dart
canaryLatestto returnv1020.v1020incanarySpec.general.dart
Update `getLatestSpecVersion` for `v1020`lib/handler/general.dart
getLatestSpecVersionto returnv1020for canary networks.v1020.dart
Add new canary matrix version file `v1020`lib/consts/matrix/canary/v1020.dart
v1020.