Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Adds NFTModule.name property (#8673)
Browse files Browse the repository at this point in the history
🌱 Adds NFTModule.name property
  • Loading branch information
has5aan committed Jul 7, 2023
1 parent 5bb2f30 commit 6b7c917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/src/modules/nft/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions framework/test/unit/modules/nft/module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 6b7c917

Please sign in to comment.