Skip to content

Commit

Permalink
fix: comment getIdentityBalance method for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed May 7, 2020
1 parent b548c71 commit cc01aa7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Polymesh.ts
Expand Up @@ -86,10 +86,13 @@ export class Polymesh {

/**
* Get the POLYX balance of the current account
* NOTE: For Testnet v1 we don't expose this method
*/
/*
public getIdentityBalance(): Promise<BigNumber> {
return this.context.getCurrentIdentity().getPolyXBalance();
}
*/

/**
* Get the free POLYX balance of an account
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/Polymesh.ts
Expand Up @@ -110,6 +110,7 @@ describe('Polymesh Class', () => {
});
});

/*
describe('method: getIdentityBalance', () => {
test("should return the identity's POLYX balance", async () => {
const fakeBalance = new BigNumber(20);
Expand All @@ -126,6 +127,7 @@ describe('Polymesh Class', () => {
expect(result).toEqual(fakeBalance);
});
});
*/

describe('method: getAccountBalance', () => {
test('should return the free POLYX balance of the current account', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/api/entities/SecurityToken/Compliance/Rules.ts
Expand Up @@ -60,7 +60,7 @@ export class Rules extends Namespace<SecurityToken> {
return rule;
});
}

/**
* Detele all the current rules for the Security Token.
*/
Expand Down
Expand Up @@ -68,7 +68,7 @@ describe('Rules class', () => {
.resolves(expectedQueue);

const queue = await rules.set(args);

expect(queue).toBe(expectedQueue);
});
});
Expand Down

0 comments on commit cc01aa7

Please sign in to comment.