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

fix: scaffold an uint64 type crashs Ignite #4479

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- [#4128](https://github.com/ignite/cli/pull/4128) Check for duplicate proto fields in config
- [#4402](https://github.com/ignite/cli/pull/4402) Fix gentx parser into the cosmosutil package
- [#4474](https://github.com/ignite/cli/pull/4474) Fix issue in `build --release` command
- [#4479](https://github.com/ignite/cli/pull/4479) Scaffold an `uint64 type crashs Ignite

## [`v28.7.0`](https://github.com/ignite/cli/releases/tag/v28.7.0)

Expand Down
6 changes: 6 additions & 0 deletions ignite/templates/field/datatype/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ const (
Bool Name = "bool"
// Int represents the int type name.
Int Name = "int"
// Int64 represents the int64 type name.
Int64 Name = "int64"
// IntSlice represents the int array type name.
IntSlice Name = "array.int"
// Uint represents the uint type name.
Uint Name = "uint"
// Uint64 represents the uint64 type name.
Uint64 Name = "uint64"
// UintSlice represents the uint array type name.
UintSlice Name = "array.uint"
// Coin represents the coin type name.
Expand Down Expand Up @@ -56,9 +60,11 @@ var supportedTypes = map[Name]DataType{
StringSliceAlias: DataStringSlice,
Bool: DataBool,
Int: DataInt,
Int64: DataInt,
IntSlice: DataIntSlice,
IntSliceAlias: DataIntSlice,
Uint: DataUint,
Uint64: DataUint,
UintSlice: DataUintSlice,
UintSliceAlias: DataUintSlice,
Coin: DataCoin,
Expand Down
Loading