-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
R4R: use expected keeper for bank module #4584
R4R: use expected keeper for bank module #4584
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4584 +/- ##
==========================================
+ Coverage 52.65% 52.66% +0.01%
==========================================
Files 263 263
Lines 16463 16463
==========================================
+ Hits 8669 8671 +2
+ Misses 7146 7144 -2
Partials 648 648 |
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 great @colin-axner, thanks!. Left a minor note in the expected keeper.
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
@@ -5,7 +5,7 @@ import ( | |||
"time" | |||
|
|||
sdk "github.com/cosmos/cosmos-sdk/types" | |||
"github.com/cosmos/cosmos-sdk/x/auth" | |||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" |
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.
These shouldn't use authtypes, but rather bank types (types.AccountKeeper).
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.
so add an account interface? authtypes
is only used for Account
and VestingAccount
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.
@colin-axner yes -- in x/bank/internal/types/expected_keepers.go
implement the Account
interface.
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.
ACK -- taking over this branch's work in bez/4576-bank-expected-keeper
.
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: