Skip to content

Commit

Permalink
Update src/core.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Hadrien Croubois <[email protected]>
  • Loading branch information
frangio and Amxx authored Mar 28, 2024
1 parent 797b5e3 commit 02dfc2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ function getAbiType(typeName: TypeName, context: ContractDefinition, deref: ASTD
const typeDef = derefUserDefinedTypeName(deref, typeName);
switch (typeDef.nodeType) {
case 'UserDefinedValueTypeDefinition':
const { underlyingType } = typeDef;
const { typeString } = underlyingType.typeDescriptions;
const { typeString } = typeDef.underlyingType.typeDescriptions;
assert(typeString != undefined);
return typeString;

Expand Down

0 comments on commit 02dfc2b

Please sign in to comment.