Skip to content

Commit

Permalink
Address style comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Bezobchuk committed Nov 7, 2018
1 parent 812784c commit 845dd68
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions x/bank/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var _ Keeper = (*BaseKeeper)(nil)
// between accounts.
type Keeper interface {
SendKeeper

SetCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) sdk.Error
SubtractCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error)
AddCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) (sdk.Coins, sdk.Tags, sdk.Error)
Expand All @@ -39,7 +40,10 @@ type BaseKeeper struct {

// NewBaseKeeper returns a new BaseKeeper
func NewBaseKeeper(ak auth.AccountKeeper) BaseKeeper {
return BaseKeeper{BaseSendKeeper: NewBaseSendKeeper(ak), ak: ak}
return BaseKeeper{
BaseSendKeeper: NewBaseSendKeeper(ak),
ak: ak,
}
}

// SetCoins sets the coins at the addr.
Expand Down Expand Up @@ -87,7 +91,10 @@ type BaseSendKeeper struct {

// NewBaseSendKeeper returns a new BaseSendKeeper.
func NewBaseSendKeeper(ak auth.AccountKeeper) BaseSendKeeper {
return BaseSendKeeper{BaseViewKeeper: NewBaseViewKeeper(ak), ak: ak}
return BaseSendKeeper{
BaseViewKeeper: NewBaseViewKeeper(ak),
ak: ak,
}
}

// SendCoins moves coins from one account to another
Expand Down Expand Up @@ -125,7 +132,9 @@ type BaseViewKeeper struct {

// NewBaseViewKeeper returns a new BaseViewKeeper.
func NewBaseViewKeeper(ak auth.AccountKeeper) BaseViewKeeper {
return BaseViewKeeper{ak: ak}
return BaseViewKeeper{
ak: ak,
}
}

// GetCoins returns the coins at the addr.
Expand Down

0 comments on commit 845dd68

Please sign in to comment.