-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: set address current network for non-mainnet since default is changed #12574
Conversation
Default `address.CurrentNetwork` was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it to `Testnet`. Add tests to assert it.
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.
Please update the PR title to match https://github.com/filecoin-project/lotus/blob/master/CONTRIBUTING.md#pr-title-conventions
PR title now matches the required format.
@masih I believe you can just set this once here: https://github.com/filecoin-project/lotus/blob/v1.30.0-rc1/build/buildconstants/params_shared_vals.go#L22-L26 But I might be wrong |
Honestly, I'd rather be explicit. Also, we desperately need some form of shared "testnet" params file. |
+1 for explicit setting. But true fix would be to get rid of build params entirely, which is a battle best fought hydrated. |
…12574) Default `address.CurrentNetwork` was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it to `Testnet`. Add tests to assert it.
…12574) Default `address.CurrentNetwork` was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it to `Testnet`. Add tests to assert it.
…12574) Default `address.CurrentNetwork` was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it to `Testnet`. Add tests to assert it.
Related Issues
Proposed Changes
Default
address.CurrentNetwork
was changed in an upstream dependency. Update the build constants for non-mainnet to explicitly set it toTestnet
.Add tests to assert it.
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that: