@@ -200,7 +200,7 @@ func TestGenerateTestTemplate(t *testing.T) {
200200 err := g .Create (TestTemplate {
201201 Name : "Foobar" ,
202202 TemplatePath : "contract_init_test.cdc.tmpl" ,
203- Data : map [string ]interface {} {
203+ Data : map [string ]any {
204204 "ContractName" : "Foobar" ,
205205 }},
206206 )
@@ -234,18 +234,18 @@ func TestGenerateReadmeNoDeps(t *testing.T) {
234234 err := g .Create (FileTemplate {
235235 TemplatePath : "README.md.tmpl" ,
236236 TargetPath : "README.md" ,
237- Data : map [string ]interface {} {
238- "Dependencies" : []map [string ]interface {} {},
239- "Contracts" : []map [string ]interface {} {
237+ Data : map [string ]any {
238+ "Dependencies" : []map [string ]any {},
239+ "Contracts" : []map [string ]any {
240240 {"Name" : "ExampleContract" },
241241 },
242- "Transactions" : []map [string ]interface {} {
242+ "Transactions" : []map [string ]any {
243243 {"Name" : "ExampleTransaction" },
244244 },
245- "Scripts" : []map [string ]interface {} {
245+ "Scripts" : []map [string ]any {
246246 {"Name" : "ExampleScript" },
247247 },
248- "Tests" : []map [string ]interface {} {
248+ "Tests" : []map [string ]any {
249249 {"Name" : "ExampleTest" },
250250 },
251251 },
@@ -268,21 +268,21 @@ func TestGenerateReadmeWithDeps(t *testing.T) {
268268 err := g .Create (FileTemplate {
269269 TemplatePath : "README.md.tmpl" ,
270270 TargetPath : "README.md" ,
271- Data : map [string ]interface {} {
272- "Dependencies" : []map [string ]interface {} {
271+ Data : map [string ]any {
272+ "Dependencies" : []map [string ]any {
273273 {"Name" : "FlowToken" },
274274 {"Name" : "FungibleToken" },
275275 },
276- "Contracts" : []map [string ]interface {} {
276+ "Contracts" : []map [string ]any {
277277 {"Name" : "ExampleContract" },
278278 },
279- "Transactions" : []map [string ]interface {} {
279+ "Transactions" : []map [string ]any {
280280 {"Name" : "ExampleTransaction" },
281281 },
282- "Scripts" : []map [string ]interface {} {
282+ "Scripts" : []map [string ]any {
283283 {"Name" : "ExampleScript" },
284284 },
285- "Tests" : []map [string ]interface {} {
285+ "Tests" : []map [string ]any {
286286 {"Name" : "ExampleTest" },
287287 },
288288 },
0 commit comments