diff --git a/packages/types/src/generic/Call.ts b/packages/types/src/generic/Call.ts index 715f134aaf..a5344edc7c 100644 --- a/packages/types/src/generic/Call.ts +++ b/packages/types/src/generic/Call.ts @@ -194,6 +194,13 @@ export default class Call extends Struct implements IMethod { return this.registry.findMetaCall(this.callIndex).method; } + /** + * @description Returns the name of the method + */ + public get method (): string { + return this.methodName; + } + /** * @description Returns the module containing the method */ @@ -201,6 +208,13 @@ export default class Call extends Struct implements IMethod { return this.registry.findMetaCall(this.callIndex).section; } + /** + * @description Returns the module containing the method + */ + public get section (): string { + return this.sectionName; + } + /** * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information */