-
Notifications
You must be signed in to change notification settings - Fork 128
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
Remove UsingNewGenesisCommand
config in favor of a runtime check
#759
Conversation
UsingNewGenesisCommand
config to instead check at runtime.UsingNewGenesisCommand
config in favor of a runtime check
command = []string{"export", "--height", fmt.Sprint(height), "--home", tn.HomeDir()} | ||
) | ||
|
||
if isNewGenesis { |
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.
we can keep the var here so the lookup doesn't need to be performed twice within this method
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.
chain/cosmos/chain_node.go
Outdated
if err != nil { | ||
return false | ||
} | ||
|
||
return true |
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.
should we return false
here?
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.
🚀
) * ictest: remove UseNewGenesisCommand * localic: remove UseNewGenesisCommand * minor: remove needless variable * Make `IsAboveSDK47` public (cherry picked from commit cc12f99) # Conflicts: # examples/cosmos/sdk_boundary_test.go # local-interchain/go.mod # local-interchain/go.sum
… a runtime check (#765) * Remove `UsingNewGenesisCommand` config in favor of a runtime check (#759) * ictest: remove UseNewGenesisCommand * localic: remove UseNewGenesisCommand * minor: remove needless variable * Make `IsAboveSDK47` public (cherry picked from commit cc12f99) # Conflicts: # examples/cosmos/sdk_boundary_test.go # local-interchain/go.mod # local-interchain/go.sum * Remove `UsingNewGenesisCommand` config in favor of a runtime check (#759) * ictest: remove UseNewGenesisCommand * localic: remove UseNewGenesisCommand * minor: remove needless variable * Make `IsAboveSDK47` public --------- Co-authored-by: Reece Williams <[email protected]>
Closes #742
summary
Removing the config option
UsingNewGenesisCommand
makes it easier to write test spanning multiple SDK versions (v45 - 50).