Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

refactor: fetch wallet vote directly instead of requesting transactions #1442

Merged
merged 10 commits into from
Sep 9, 2019
Merged

refactor: fetch wallet vote directly instead of requesting transactions #1442

merged 10 commits into from
Sep 9, 2019

Conversation

dated
Copy link
Contributor

@dated dated commented Sep 9, 2019

Instead of fetching the last vote transaction, a wallet's vote can be retrieved through the wallet endpoint directly.

This PR also changes:

  • (re)set the ledger wallets' state to {} instead of []
  • return a wallet's balance as string instead of parsing it as integer

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactor
  • Performance
  • Tests
  • Build
  • Documentation
  • Code style update
  • Continuous Integration
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch
  • All tests are passing
  • New/updated tests are included

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

@ghost
Copy link

ghost commented Sep 9, 2019

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost added Complexity: Medium Less than 256 lines changed. Type: Refactor The pull request improves or enhances an existing implementation. labels Sep 9, 2019
Copy link
Contributor

@luciorubeens luciorubeens left a comment

Choose a reason for hiding this comment

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

SGTM, only need a condition when not find.

src/renderer/services/client.js Outdated Show resolved Hide resolved
src/renderer/store/modules/ledger.js Outdated Show resolved Hide resolved
@luciorubeens luciorubeens added the Bounty: Tier 3 Awarded for medium features, refactorings, improvements. This is valued at 50 USD. label Sep 9, 2019
@dated dated mentioned this pull request Sep 9, 2019
18 tasks
@ghost
Copy link

ghost commented Sep 9, 2019

A member has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@ghost ghost added the Status: Member Approved The pull request has been approved by a member. label Sep 9, 2019
@luciorubeens luciorubeens merged commit 8f9ecff into ArkEcosystem:develop Sep 9, 2019
@ghost
Copy link

ghost commented Sep 9, 2019

Your pull request has been merged and marked as tier 3. It will earn you $50 USD.

@dated dated deleted the refactor/wallet-vote branch September 10, 2019 01:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bounty: Tier 3 Awarded for medium features, refactorings, improvements. This is valued at 50 USD. Complexity: Medium Less than 256 lines changed. Status: Member Approved The pull request has been approved by a member. Type: Refactor The pull request improves or enhances an existing implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants