-
Notifications
You must be signed in to change notification settings - Fork 150
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: add --version flag #620
Conversation
Whats the exact behavior that is unexpected? |
@emostov The "unknown" issue is just SAS is logging/printing the below by just importing files. As in without initializing anything this will always print if
|
@TarikGul try moving this line inside of main: substrate-api-sidecar/src/main.ts Line 34 in 5a78903
I think its calling the getter here: substrate-api-sidecar/src/SidecarConfig.ts Lines 70 to 72 in 5a78903
|
Yea I had tried this earlier when trying to debug it and it didn't work, that could be another source of where it could be coming from though, but I also can confirm that in this file specifically this line it's being called during the imports. But that being said it I think it could be initializing in more than one place too. |
@emostov I did make some progress on it, looks like you were right in one respect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me, and it does what it says on the tin :)
closes: #484
This adds the version flag for sidecar, but currently there is some unknown default behavior that should be resolved before this is merged.
Run:
yarn build && yarn start --version
Current output:
I am under the impression that this could be the root of the issue, but I need to do some more digging.
It originated from this import, then trickles down to
./controllers
all the way to anywherevalidateAddress
is imported in, such as all theAccount
Controllers.Update:
This is fixed, and working as it should!