Skip to content

Commit

Permalink
chore: update message_update_param_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Sep 30, 2024
1 parent 941b801 commit 36e5f2e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions x/application/types/message_update_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,27 @@ func TestMsgUpdateParam_ValidateBasic(t *testing.T) {
err error
}{
{
name: "invalid address",
name: "invalid: authority address invalid",
msg: MsgUpdateParam{
Authority: "invalid_address",
Name: "",
AsType: &MsgUpdateParam_AsCoin{AsCoin: &DefaultMinStake},
},
err: sdkerrors.ErrInvalidAddress,
}, {
name: "valid address",
name: "invalid: param name incorrect (non-existent)",
msg: MsgUpdateParam{
Authority: sample.AccAddress(),
Name: "non_existent",
AsType: &MsgUpdateParam_AsCoin{AsCoin: nil},
},
err: ErrAppParamInvalid,
}, {
name: "valid: correct authority, param name, and type",
msg: MsgUpdateParam{
Authority: sample.AccAddress(),
Name: ParamMinStake,
AsType: &MsgUpdateParam_AsCoin{AsCoin: &DefaultMinStake},
},
},
}
Expand Down

0 comments on commit 36e5f2e

Please sign in to comment.