Skip to content

Commit

Permalink
fix comments, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Dec 17, 2024
1 parent b6b5c2e commit b590e20
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/abi/src/parser/specifications/v1/resolvable-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export class ResolvableType {

/**
* The type parameter is either directly substituted with a type argument,
* or it's metadata type which accepts the type argument,
* so that metadata type needs to be resolved first.
* or it's a metadata type which accepts the type argument,
* so that metadata type will be resolved and subsitute the type parameter.
*/
const resolved =
typeParamsArgsMap?.get(arg.metadataTypeId) ??
Expand All @@ -351,7 +351,11 @@ export class ResolvableType {
return newMap;
}

public resolve(concreteType: AbiConcreteTypeV1) {
/**
* Resolves the instance of `ResolvableType` with the specific concrete type's data.
* @returns a `ResolvedType` in which all its components are resolved.
*/
public resolve(concreteType: AbiConcreteTypeV1): ResolvedType {
const concreteTypeArgs = concreteType.typeArguments?.map((typeArgument) => {
const concreteTypeArg = this.findConcreteType(typeArgument);
return this.resolveConcreteType(concreteTypeArg);
Expand Down

0 comments on commit b590e20

Please sign in to comment.