Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Dec 3, 2022
1 parent 41966db commit eda30d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions x/did/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ func (tfp *FeeParams) ValidateBasic() error {
return fmt.Errorf("invalid deactivate did tx fee: %s", tfp.DeactivateDid)
}

if !tfp.CreateDid.IsGTE(tfp.UpdateDid) {
return fmt.Errorf("create did tx fee must be greater than or equal to update did tx fee: %s >= %s", tfp.CreateDid, tfp.UpdateDid)
}

if tfp.UpdateDid.IsLTE(tfp.DeactivateDid) {
return fmt.Errorf("update did tx fee must be greater than deactivate did tx fee: %s > %s", tfp.UpdateDid, tfp.DeactivateDid)
}

if !tfp.BurnFactor.IsPositive() || tfp.BurnFactor.GTE(sdk.OneDec()) {
return fmt.Errorf("invalid burn factor: %s", tfp.BurnFactor)
}
Expand Down
8 changes: 0 additions & 8 deletions x/resource/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ func (tfp *FeeParams) ValidateBasic() error {
return fmt.Errorf("invalid create resource default tx fee: %s", tfp.Json)
}

if !tfp.Image.IsGTE(tfp.Json) {
return fmt.Errorf("create resource image tx fee must be greater than or equal to create resource json tx fee: %s >= %s", tfp.Image, tfp.Json)
}

if tfp.Json.IsLTE(tfp.Default) {
return fmt.Errorf("create resource json tx fee must be greater than create resource default tx fee: %s > %s", tfp.Json, tfp.Default)
}

if !tfp.BurnFactor.IsPositive() || tfp.BurnFactor.GTE(sdk.OneDec()) {
return fmt.Errorf("invalid burn factor: %s", tfp.BurnFactor)
}
Expand Down

0 comments on commit eda30d6

Please sign in to comment.