Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Apr 11, 2024
1 parent dbfb052 commit 6aad8db
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion x/emissions/migrations/v3/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestMigrate(t *testing.T) {

legacyParams := types.Params{
MaxBondFactor: "1",
MinBondFactor: "0.50",
MinBondFactor: "0.75",
AvgBlockTime: "5.00",
TargetBondRatio: "00.50",
ValidatorEmissionPercentage: "00.50",
Expand Down
5 changes: 0 additions & 5 deletions x/emissions/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ func TestGenesisState_Validate(t *testing.T) {
genState: types.DefaultGenesis(),
valid: true,
},
{
desc: "valid genesis state",
genState: &types.GenesisState{},
valid: true,
},
} {
t.Run(tc.desc, func(t *testing.T) {
err := tc.genState.Validate()
Expand Down
6 changes: 1 addition & 5 deletions x/emissions/types/message_update_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@ func (m *MsgUpdateParams) ValidateBasic() error {
return cosmoserrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err)

Check warning on line 26 in x/emissions/types/message_update_params.go

View check run for this annotation

Codecov / codecov/patch

x/emissions/types/message_update_params.go#L23-L26

Added lines #L23 - L26 were not covered by tests
}

if err := m.Params.Validate(); err != nil {
return err
}

return nil
return m.Params.Validate()

Check warning on line 29 in x/emissions/types/message_update_params.go

View check run for this annotation

Codecov / codecov/patch

x/emissions/types/message_update_params.go#L29

Added line #L29 was not covered by tests
}
6 changes: 1 addition & 5 deletions x/observer/types/message_update_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,5 @@ func (m *MsgUpdateParams) ValidateBasic() error {
return cosmoserrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err)

Check warning on line 26 in x/observer/types/message_update_params.go

View check run for this annotation

Codecov / codecov/patch

x/observer/types/message_update_params.go#L23-L26

Added lines #L23 - L26 were not covered by tests
}

if err := m.Params.Validate(); err != nil {
return err
}

return nil
return m.Params.Validate()

Check warning on line 29 in x/observer/types/message_update_params.go

View check run for this annotation

Codecov / codecov/patch

x/observer/types/message_update_params.go#L29

Added line #L29 was not covered by tests
}

0 comments on commit 6aad8db

Please sign in to comment.