-
Notifications
You must be signed in to change notification settings - Fork 103
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: Add fixed fee for creating a new credit class (#351) #375
Conversation
2b9db4c
to
72123c8
Compare
a454fdf
to
4f52a56
Compare
Codecov Report
@@ Coverage Diff @@
## master #375 +/- ##
==========================================
+ Coverage 60.74% 61.01% +0.27%
==========================================
Files 49 51 +2
Lines 3289 3317 +28
==========================================
+ Hits 1998 2024 +26
- Misses 1028 1029 +1
- Partials 263 264 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
e905d4b
to
50d0ec2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good overall but I would rework the module wiring.
Could you resolve the conflicts?
1bc7219
to
15d827f
Compare
15d827f
to
4ec6adc
Compare
4ec6adc
to
7dec40d
Compare
7dec40d
to
2957585
Compare
Btw no need to rebase and force push @ruhatch. Since we're squashing everything you can just use merge commits |
Nice, thanks for the tip! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just need few changes
Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested it with the CLI and tx is failing with (coming from ABCI, recovering from a panic):
panic message redacted to hide potentially sensitive system info: panic
The tx is working fine on master. Can you reproduce it?
@blushi did you init a new chain or use an existing one? It might be panicking because it can't find the genesis parameters? |
Good point! That was indeed with an existing chain, I'll try out again with a new one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, nice work @ruhatch!
This PR adds a fixed fee to the CreateClass method of
x/ecocredit
.The fee is:
Designer
of the new classx/params
parameter, updated throughx/gov
While reviewing this PR, please pay extra attention to:
Closes #351