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(grpc): calculate fee for create-raw-transaction APIs #1159

Merged
merged 5 commits into from
Mar 10, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Mar 10, 2024

Description

This PR calculates the fee based on the amount if it is not set (or set to zero).
It also sets the lock-time to the latest block height if it is not set (or set to zero).

Copy link

codecov bot commented Mar 10, 2024

Codecov Report

Merging #1159 (5a81c98) into main (40cf0d9) will decrease coverage by 0.10%.
The diff coverage is 78.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1159      +/-   ##
==========================================
- Coverage   81.40%   81.30%   -0.10%     
==========================================
  Files         173      173              
  Lines        9245     9272      +27     
==========================================
+ Hits         7526     7539      +13     
- Misses       1364     1373       +9     
- Partials      355      360       +5     

@b00f b00f force-pushed the grpc-calc-fee-on-create-tx branch from 6a45e82 to 7ab897d Compare March 10, 2024 07:42
@b00f b00f merged commit 3a4184b into pactus-project:main Mar 10, 2024
12 checks passed
@b00f b00f deleted the grpc-calc-fee-on-create-tx branch March 10, 2024 09:25
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.

2 participants