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

ics20 test #10

Open
wants to merge 20 commits into
base: ibc-alpha
Choose a base branch
from
Open

Conversation

chengwenxi
Copy link
Owner

No description provided.

_, err := suite.keeper.CreateClient(suite.ctx, testClientID, exported.Tendermint, suite.consensusState)
require.Nil(suite.T(), err, "CreateClient failed")

tc.malleate()

Choose a reason for hiding this comment

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

Using the variable on range scope tc in function literal (from scopelint)

tmConsState, _ := retrievedConsState.(tendermint.ConsensusState)
tmConsState.NextValidatorSet.TotalVotingPower()
retrievedRoot, _ := suite.keeper.GetVerifiedRoot(suite.ctx, testClientID, suite.consensusState.GetHeight()+1)
if tc.expErr {

Choose a reason for hiding this comment

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

Using the variable on range scope tc in function literal (from scopelint)

tmConsState.NextValidatorSet.TotalVotingPower()
retrievedRoot, _ := suite.keeper.GetVerifiedRoot(suite.ctx, testClientID, suite.consensusState.GetHeight()+1)
if tc.expErr {
require.NotNil(suite.T(), err, "Invalid UpdateClient passed", tc.name)

Choose a reason for hiding this comment

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

Using the variable on range scope tc in function literal (from scopelint)

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.

None yet

4 participants