Skip to content

Commit

Permalink
fix(templates): wrong name for list and seq (#4301)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
Pantani and julienrbrt authored Aug 16, 2024
1 parent 3f11e6e commit 40b2989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignite/templates/typed/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func keeperModify(replacer placeholder.Replacer, opts *typed.Options) genny.RunF
)
content := replacer.Replace(f.String(), typed.PlaceholderCollectionType, replacementModuleType)

templateKeeperInstantiate := `%[2]vSeq: collections.NewSequence(sb, types.%[2]vCountKey, "%[3]v"),
%[2]v: collections.NewMap(sb, types.%[2]vKey, "%[3]v_seq", collections.Uint64Key, codec.CollValue[types.%[2]v](cdc)),
templateKeeperInstantiate := `%[2]vSeq: collections.NewSequence(sb, types.%[2]vCountKey, "%[3]v_seq"),
%[2]v: collections.NewMap(sb, types.%[2]vKey, "%[3]v", collections.Uint64Key, codec.CollValue[types.%[2]v](cdc)),
%[1]v`
replacementInstantiate := fmt.Sprintf(
templateKeeperInstantiate,
Expand Down

0 comments on commit 40b2989

Please sign in to comment.