-
Notifications
You must be signed in to change notification settings - Fork 72
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: 3198 cherry pick npm package version #3200
Conversation
* fix: Capture the npm_package_version Signed-off-by: ebadiere <[email protected]> * fix: Adding npm_package_version at the root package.json file to allow test framework to load the value in the config service. Also some clean up. Signed-off-by: ebadiere <[email protected]> * chore: Updated package-lock.json Signed-off-by: ebadiere <[email protected]> --------- Signed-off-by: ebadiere <[email protected]>
package.json and rebuilt the package-lock.json. Signed-off-by: ebadiere <[email protected]>
Quality Gate passedIssues Measures |
Test Results 22 files ± 0 291 suites - 18 33m 5s ⏱️ -57s For more details on these failures, see this check. Results for commit 3f8a242. ± Comparison against base commit 97017ac. ♻️ This comment has been updated with latest results. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/0.59 #3200 +/- ##
=============================================
Coverage 83.39% 83.39%
=============================================
Files 66 66
Lines 4283 4283
Branches 835 835
=============================================
Hits 3572 3572
Misses 471 471
Partials 240 240
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Description:
Cherry-picked fix for the
web3_clientVersion
method.The ConfigService was using an all caps version of the npm_package_version of the env var definition but in a node context the env var is lowercase: npm_package_version. Nothing was being returned from the web3_clientVersion method.
Related issue(s):
Fixes #3198
Notes for reviewer:
Simply changing the case of the env var definition in the GlobalConfig.ts class prevents updating conditional logic that already works. Adding the version number to the root package.json file allows it to be loaded by the ConfigService.ts which loads before the acceptance tests framework.
Checklist