Skip to content

Commit

Permalink
fix: parsing types in variants (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga authored Dec 14, 2023
1 parent 603687b commit 576295e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/contract/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function generateActionInterface(
variantType = `${struct.name}_${field.name}_variant`

const variantTypeNodes = types.map((type) =>
ts.factory.createTypeReferenceNode(findExternalType(type, 'Types.', abi))
ts.factory.createTypeReferenceNode(parseType(findExternalType(type, 'Types.', abi)))
)
const variantTypeAlias = ts.factory.createTypeAliasDeclaration(
undefined,
Expand Down

0 comments on commit 576295e

Please sign in to comment.