Skip to content

Commit bf44e1f

Browse files
Fix broken protobuf generation for hashMap (#19)
* fix hashmap * push changeset
1 parent 0cf6a1b commit bf44e1f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fix-hashmap-protobuf.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@codama/renderers-vixen-parser": patch
3+
---
4+
5+
- Fix broken protobuf generation for `hashMap` fields in IDL.

src/getProtoTypeManifestVisitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export function getProtoTypeManifestVisitor(options: {
280280
return {
281281
imports: new ImportMap(),
282282
nestedStructs: [],
283-
type: `map<${key.type}, ${value.type}> = 1`,
283+
type: `map<${key.type}, ${value.type}>`,
284284
};
285285
},
286286

0 commit comments

Comments
 (0)