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

fix(cmd): parse withdraw fee using transaction options #1602

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Nov 18, 2024

Description

The transaction constructor includes an option to parse and set the fee correctly. However, this functionality was missing for the "withdraw" transaction. This PR addresses the issue by using OptionFeeFromString to handle the transaction fee.

Workaround

To use the current command, users must set the fee manually as an option in the command, like so:

.pactus-wallet tx withdraw <ADDR> <ADDR> <STAKE> --fee 0.01

Related Issue(s)

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.22%. Comparing base (86a8ba9) to head (b451b58).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1602      +/-   ##
==========================================
+ Coverage   75.07%   76.22%   +1.14%     
==========================================
  Files         234      236       +2     
  Lines       12156    18240    +6084     
==========================================
+ Hits         9126    13903    +4777     
- Misses       2582     3879    +1297     
- Partials      448      458      +10     

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.

command line, tx withdraw parse error
1 participant