Skip to content

Commit

Permalink
fix: 馃悰 Rename agIdSequence -> aGIdSequence
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantasdeveloper committed Dec 22, 2021
1 parent 084dc00 commit b042d40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/entities/CustomPermissionGroup.ts
Expand Up @@ -110,7 +110,7 @@ export class CustomPermissionGroup extends PermissionGroup {
public async exists(): Promise<boolean> {
const { ticker, id, context } = this;

const nextId = await context.polymeshApi.query.externalAgents.agIdSequence(
const nextId = await context.polymeshApi.query.externalAgents.aGIdSequence(
stringToTicker(ticker, context)
);

Expand Down
4 changes: 2 additions & 2 deletions src/api/entities/__tests__/CustomPermissionGroup.ts
Expand Up @@ -141,13 +141,13 @@ describe('CustomPermissionGroup class', () => {
test('should return whether the Custom Permission Group exists', async () => {
const customPermissionGroup = new CustomPermissionGroup({ id, ticker }, context);

dsMockUtils.createQueryStub('externalAgents', 'agIdSequence', {
dsMockUtils.createQueryStub('externalAgents', 'aGIdSequence', {
returnValue: dsMockUtils.createMockU32(0),
});

await expect(customPermissionGroup.exists()).resolves.toBe(false);

dsMockUtils.createQueryStub('externalAgents', 'agIdSequence', {
dsMockUtils.createQueryStub('externalAgents', 'aGIdSequence', {
returnValue: dsMockUtils.createMockU32(10),
});

Expand Down
2 changes: 1 addition & 1 deletion src/polkadot/augment-api-query.ts
Expand Up @@ -955,7 +955,7 @@ declare module '@polkadot/api/types/storage' {
* The full ID is defined as a combination of `Ticker` and a number in this sequence,
* which starts from 1, rather than 0.
**/
agIdSequence: AugmentedQuery<
aGIdSequence: AugmentedQuery<
ApiType,
(arg: Ticker | string | Uint8Array) => Observable<AGId>,
[Ticker]
Expand Down

0 comments on commit b042d40

Please sign in to comment.