From 8bea5e5a3b68cdd087f0c241014637b942276ebf Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 6 Jun 2020 08:40:41 +0200 Subject: [PATCH] Align Call section/method field names (#2332) --- packages/types/src/generic/Call.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 */