Skip to content

Commit

Permalink
fix. wrong placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Dec 12, 2024
1 parent d049cbe commit 75e5836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ignite/templates/typed/singleton/singleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,11 @@ func genesisTypesTestsModify(opts *typed.Options) genny.RunFn {
content, err := xast.ModifyFunction(
f.String(),
"TestGenesisState_Validate",
xast.AppendFuncTestCase(
xast.AppendInsideFuncStruct(
"GenesisState",
opts.TypeName.UpperCamel,
fmt.Sprintf("&types.%[1]v{ %[2]v }", opts.TypeName.UpperCamel, sampleFields),
-1,
),
)
if err != nil {
Expand Down

0 comments on commit 75e5836

Please sign in to comment.