Skip to content

Commit

Permalink
revert consensus version bump and minor nit
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Jul 19, 2022
1 parent 9616d0d commit e63581a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions x/bank/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ var (
types.NewOutput(addr3, halfCoins),
},
}
multiSendMsg4 = &types.MsgMultiSend{
multiSendMsg3 = &types.MsgMultiSend{
Input: types.NewInput(addr2, coins),
Outputs: []types.Output{
types.NewOutput(addr1, coins),
},
}
multiSendMsg5 = &types.MsgMultiSend{
multiSendMsg4 = &types.MsgMultiSend{
Input: types.NewInput(addr1, coins),
Outputs: []types.Output{
types.NewOutput(moduleAccAddr, coins),
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestMsgMultiSendWithAccounts(t *testing.T) {
},
{
desc: "wrong accSeq should not pass Simulate",
msgs: []sdk.Msg{multiSendMsg5},
msgs: []sdk.Msg{multiSendMsg4},
accNums: []uint64{0},
accSeqs: []uint64{0}, // wrong account sequence
expSimPass: false,
Expand Down Expand Up @@ -246,7 +246,7 @@ func TestMsgMultiSendDependent(t *testing.T) {
},
},
{
msgs: []sdk.Msg{multiSendMsg4},
msgs: []sdk.Msg{multiSendMsg3},
accNums: []uint64{1},
accSeqs: []uint64{0},
expSimPass: true,
Expand Down
2 changes: 1 addition & 1 deletion x/bank/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
}

// ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 { return 5 }
func (AppModule) ConsensusVersion() uint64 { return 4 }

// BeginBlock performs a no-op.
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}
Expand Down

0 comments on commit e63581a

Please sign in to comment.