Skip to content

Commit

Permalink
Merge pull request #84 from PolymathNetwork/fix/comment-getIdentityBa…
Browse files Browse the repository at this point in the history
…lance

fix: comment getIdentityBalance method for v1
  • Loading branch information
shuffledex committed May 11, 2020
2 parents d265776 + 51d68a5 commit 81bb459
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Polymesh.ts
Expand Up @@ -101,12 +101,16 @@ export class Polymesh {
return transferPolyX.prepare(args, this.context);
}

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

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

// TODO: uncomment the method after v1
/*
describe('method: getIdentityBalance', () => {
test("should return the identity's POLYX balance", async () => {
const fakeBalance = new BigNumber(20);
Expand All @@ -127,6 +129,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

0 comments on commit 81bb459

Please sign in to comment.