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

R4R: use expected keeper for bank module #4584

Merged
merged 4 commits into from
Jun 20, 2019
Merged

R4R: use expected keeper for bank module #4584

merged 4 commits into from
Jun 20, 2019

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Jun 18, 2019

  • 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 explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #4584 into master will increase coverage by 0.01%.
The diff coverage is 63.63%.

@@            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

Copy link
Contributor

@alexanderbez alexanderbez left a 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.

x/bank/internal/types/expected_keepers.go Outdated Show resolved Hide resolved
x/bank/internal/types/expected_keepers.go Outdated Show resolved Hide resolved
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"
Copy link
Contributor

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).

Copy link
Contributor Author

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

Copy link
Contributor

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.

@alexanderbez alexanderbez changed the base branch from master to bez/4576-bank-expected-keeper June 20, 2019 19:18
Copy link
Contributor

@alexanderbez alexanderbez left a 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.

@alexanderbez alexanderbez merged commit 11566df into cosmos:bez/4576-bank-expected-keeper Jun 20, 2019
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