Skip to content

Commit e1194e0

Browse files
committed
use identifier string, not identifier AST element
1 parent 99e0db1 commit e1194e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/v1_1/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func getAddressImports(code []byte, name string) []string {
275275
address, isAddressImport := imp.Location.(cadenceCommon.AddressLocation)
276276
if isAddressImport {
277277
adr := address.Address.HexWithPrefix()
278-
impName := imp.Imports[0].Identifier
278+
impName := imp.Imports[0].Identifier.Identifier
279279
deps = append(deps, fmt.Sprintf("%s.%s", adr, impName))
280280
}
281281
}

0 commit comments

Comments
 (0)