Skip to content

Conversation

@bsnowden3
Copy link

No description provided.

// * @param {Callback} cb
// */
getBalance(opts, cb) {
getBalance(opts, cb, baseUrl) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default baseUrl should be the current URL (/v2/balance/ ? )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@bsnowden3 bsnowden3 force-pushed the feat/big-int-explore branch 3 times, most recently from b3bf013 to 00f595d Compare January 29, 2021 15:48
err => {
should.not.exist(err,err);
balance.should.equal(1e8);
balance.toString().should.equal("100000000");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "toString()" here kind of defeat the purpose of the test. Maybe you can check that typeof balance is number?

@bsnowden3 bsnowden3 force-pushed the feat/big-int-explore branch from 00f595d to c5f40b3 Compare February 3, 2021 21:17
matiu pushed a commit that referenced this pull request Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants