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

refactor(cmd): get first account address from wallet as reward address #1594

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Nov 11, 2024

Description

This PR introduces a change in behavior for obtaining the reward address.
If the reward address is not specified in the config, it attempts to retrieve it from the wallet.
The first Ed25519 account address is considered as the reward address, and if not available, the first BLS account address is used.

@b00f b00f requested review from Ja7ad and akbariandev November 11, 2024 17:32
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 85.10638% with 7 lines in your changes missing coverage. Please review.

Project coverage is 76.25%. Comparing base (86a8ba9) to head (fa4e07c).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1594      +/-   ##
==========================================
+ Coverage   75.07%   76.25%   +1.18%     
==========================================
  Files         234      236       +2     
  Lines       12156    18243    +6087     
==========================================
+ Hits         9126    13912    +4786     
- Misses       2582     3874    +1292     
- Partials      448      457       +9     

cmd/cmd.go Show resolved Hide resolved
@Ja7ad Ja7ad added this to the v1.6.0 milestone Nov 12, 2024
@b00f b00f merged commit a9f25bc into pactus-project:main Nov 12, 2024
12 checks passed
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.

3 participants