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: introduce Amount data type for converting PAC units #1174

Merged
merged 24 commits into from
Mar 19, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Mar 16, 2024

Description

This PR refactors all amounts to use the Amount data type. It encapsulates the amount and can be used for converting between PAC units.

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Merging #1174 (0da71b7) into main (ed449d9) will increase coverage by 0.08%.
The diff coverage is 78.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1174      +/-   ##
==========================================
+ Coverage   80.64%   80.73%   +0.08%     
==========================================
  Files         177      178       +1     
  Lines        9421     9452      +31     
==========================================
+ Hits         7598     7631      +33     
+ Misses       1449     1445       -4     
- Partials      374      376       +2     

sandbox/mock.go Show resolved Hide resolved
cmd/gtk/utils.go Outdated Show resolved Hide resolved
cmd/gtk/utils.go Outdated Show resolved Hide resolved
cmd/wallet/tx.go Show resolved Hide resolved
cmd/wallet/tx.go Show resolved Hide resolved
types/validator/validator.go Show resolved Hide resolved
@b00f b00f merged commit 885d046 into pactus-project:main Mar 19, 2024
11 of 12 checks passed
@b00f b00f deleted the refactor-amount branch March 21, 2024 06:34
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