Skip to content

Commit

Permalink
fix: scaffold an `uint64 type crashs Ignite (#4479)
Browse files Browse the repository at this point in the history
* fix scaffold an uint64 type

* add changelog
  • Loading branch information
Pantani authored Jan 23, 2025
1 parent a0ac845 commit b3c0e5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit b3c0e5c

Please sign in to comment.