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: using PAC instead of atomic units for external input/outputs #1161

Merged
merged 15 commits into from
Mar 13, 2024

Conversation

amirvalhalla
Copy link
Member

Description

convert coin type for Proto requests to accept coin instead of coin unit

@amirvalhalla amirvalhalla self-assigned this Mar 11, 2024
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Merging #1161 (6bcdfaf) into main (d836dda) will decrease coverage by 0.11%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

❗ Current head 6bcdfaf differs from pull request most recent head f69c5e6. Consider uploading reports for the commit f69c5e6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1161      +/-   ##
==========================================
- Coverage   80.81%   80.70%   -0.11%     
==========================================
  Files         177      177              
  Lines        9413     9417       +4     
==========================================
- Hits         7607     7600       -7     
- Misses       1435     1443       +8     
- Partials      371      374       +3     

util/utils.go Outdated Show resolved Hide resolved
util/utils.go Show resolved Hide resolved
@kehiy kehiy changed the title feat: convert coin type for proto requests refactor: using PAC instead of atomic units for external input/outputs Mar 11, 2024
www/grpc/transaction_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@b00f b00f left a comment

Choose a reason for hiding this comment

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

I think blockchain APIs need to be fixed. Like account, validator and committee

www/grpc/transaction_test.go Outdated Show resolved Hide resolved
@amirvalhalla amirvalhalla requested a review from b00f March 12, 2024 12:41
wallet/client.go Show resolved Hide resolved
www/grpc/transaction_test.go Outdated Show resolved Hide resolved
@amirvalhalla amirvalhalla requested a review from b00f March 12, 2024 17:50
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
www/grpc/proto/transaction.proto Outdated Show resolved Hide resolved
@@ -145,10 +145,10 @@ message GetRawWithdrawTransactionRequest {
string account_address = 3;
// Withdrawal amount.
// It should be greater than 0.
int64 amount = 4;
double amount = 4;
// Transaction fee.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Transaction fee.
// Transaction fee in PAC.

@b00f b00f merged commit 002e676 into pactus-project:main Mar 13, 2024
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