From 6b7c91721ceae037011014c70b0ea3574694a2a8 Mon Sep 17 00:00:00 2001 From: has5aan <50018215+has5aan@users.noreply.github.com> Date: Fri, 7 Jul 2023 11:48:04 +0200 Subject: [PATCH] Adds NFTModule.name property (#8673) :seedling: Adds NFTModule.name property --- framework/src/modules/nft/module.ts | 4 ++++ framework/test/unit/modules/nft/module.spec.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/framework/src/modules/nft/module.ts b/framework/src/modules/nft/module.ts index 619f8cd4133..f925126ac78 100644 --- a/framework/src/modules/nft/module.ts +++ b/framework/src/modules/nft/module.ts @@ -122,6 +122,10 @@ export class NFTModule extends BaseInteroperableModule { this.stores.register(SupportedNFTsStore, new SupportedNFTsStore(this.name, 4)); } + public get name(): string { + return 'nft'; + } + public addDependencies( interoperabilityMethod: InteroperabilityMethod, feeMethod: FeeMethod, diff --git a/framework/test/unit/modules/nft/module.spec.ts b/framework/test/unit/modules/nft/module.spec.ts index 397124fa95b..99ae42a0dd3 100644 --- a/framework/test/unit/modules/nft/module.spec.ts +++ b/framework/test/unit/modules/nft/module.spec.ts @@ -54,6 +54,10 @@ describe('nft module', () => { return context; }; + it('should have the name "nft"', () => { + expect(module.name).toBe('nft'); + }); + describe('initGenesisState', () => { describe('validate nftSubstore schema', () => { it.each(invalidSchemaNFTSubstoreGenesisAssets)('%s', async (_, input, err) => {