Skip to content
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

CNS-7: Enable consumer operation upon staking #142

Merged
merged 11 commits into from
Nov 28, 2022

Conversation

Yaroms
Copy link
Collaborator

@Yaroms Yaroms commented Nov 17, 2022

No description provided.

@ranlavanet ranlavanet changed the title Cns 7 enable consumer operation upon staking CNS-7: enable consumer operation upon staking Nov 17, 2022
@SeanZoR SeanZoR changed the title CNS-7: enable consumer operation upon staking CNS-7: Enable consumer operation upon staking Nov 17, 2022
SeanZoR
SeanZoR previously approved these changes Nov 17, 2022
@Yaroms Yaroms dismissed SeanZoR’s stale review November 24, 2022 15:26

ty for your service

)

// Setup a new App for testing purposes
func TestSetup() (cosmoscmd.App, sdk.Context) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test functions should be in a file ending with _test, go knows not to compile them, with the current name, it will be included in the binary

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just seting up for a test, not a test function in itself

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't matter what is in the file, if it doesn't end with _test.go its compiled into the final binary and we dont need test helper functions in our binary

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if i do this it makes the file unusable outside of the package, since it becomes a test file

x/epochstorage/keeper/stake_storage.go Outdated Show resolved Hide resolved
x/epochstorage/keeper/stake_storage.go Outdated Show resolved Hide resolved
x/epochstorage/keeper/stake_storage.go Show resolved Hide resolved
x/pairing/keeper/staking.go Outdated Show resolved Hide resolved
x/pairing/keeper/staking.go Outdated Show resolved Hide resolved
x/epochstorage/keeper/stake_storage.go Outdated Show resolved Hide resolved
@omerlavanet omerlavanet self-requested a review November 27, 2022 18:30
Copy link
Collaborator

@omerlavanet omerlavanet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor stuff

x/pairing/keeper/staking.go Outdated Show resolved Hide resolved
x/epochstorage/keeper/stake_storage.go Outdated Show resolved Hide resolved
@omerlavanet omerlavanet self-requested a review November 28, 2022 09:35
@omerlavanet omerlavanet merged commit 4f9c8b2 into main Nov 28, 2022
@Yaroms Yaroms deleted the CNS-7-enable-consumer-operation-upon-staking branch December 12, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants