Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Get bank pv #89

Merged
merged 5 commits into from
Mar 29, 2021
Merged

feat: Get bank pv #89

merged 5 commits into from
Mar 29, 2021

Conversation

AbhayAysola
Copy link
Contributor

Closes #84
Account Number: 8928526805de48e4bf2ed2a9b4b839e6b2603018ecdfbf4cffdb2065e01a3ed1

@AbhayAysola
Copy link
Contributor Author

The Bank class doesn't have any tests written yet, so I was thinking that you could make another issue and I'll write tests in a seperate PR @zinoadidi

src/bank.ts Outdated
* Gets the PrimaryValidator for the current bank.
*/
async getBankPV() {
const { primary_validator } = await await this.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like a new way to write awaits, does it work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha I accidentally wrote await twice, my bad 😅. Not sure how I missed that

@zinoadidi zinoadidi linked an issue Mar 29, 2021 that may be closed by this pull request
@zinoadidi
Copy link
Contributor

test bank class task created #90

@tomijaga
Copy link
Contributor

Hey, @AbhayAysola can we have the getBankPV() return a new PrimaryValidator class

@AbhayAysola
Copy link
Contributor Author

Hey, @AbhayAysola can we have the getBankPV() return a new PrimaryValidator class

Done

@AbhayAysola AbhayAysola reopened this Mar 29, 2021
docs/bank.md Outdated Show resolved Hide resolved
@tomijaga
Copy link
Contributor

@zinoadidi The PR looks good!

@zinoadidi
Copy link
Contributor

Thanks @tomijaga, @AbhayAysola

@zinoadidi zinoadidi changed the title Get bank pv feat: Get bank pv Mar 29, 2021
@zinoadidi zinoadidi closed this Mar 29, 2021
@zinoadidi zinoadidi reopened this Mar 29, 2021
@zinoadidi zinoadidi merged commit 99b0d17 into thenewboston-blockchain:development Mar 29, 2021
@AbhayAysola AbhayAysola deleted the getBankPV branch March 29, 2021 08:59
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.

[Task] Gets the PV set for a bank (feature | tests | docs)
3 participants