Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed May 29, 2023
1 parent 413606e commit 1ce8a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testutil/integration/onomy_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func replaceStringInFile(filePath, from, to string) error {
return err
}
output := bytes.ReplaceAll(input, []byte(from), []byte(to))
return ioutil.WriteFile(filePath, output, 0666) // nolint:gomnd
return ioutil.WriteFile(filePath, output, 0o666) // nolint:gomnd
}

func replaceGenesysSettings(filePath, settingPath string, newValue json.RawMessage) error {
Expand All @@ -259,7 +259,7 @@ func replaceGenesysSettings(filePath, settingPath string, newValue json.RawMessa
return err
}

return ioutil.WriteFile(filePath, output, 0666) // nolint:gomnd
return ioutil.WriteFile(filePath, output, 0o666) // nolint:gomnd
}

func replaceJSONInJSONmap(object map[string]json.RawMessage, settingPath []string, newValue json.RawMessage) error {
Expand Down
2 changes: 1 addition & 1 deletion x/dao/keeper/treasury.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) s
}

// SendCoins transfers coins from one account to another.
func (k Keeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error {
func (k Keeper) SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error {
return k.bankKeeper.SendCoins(ctx, fromAddr, toAddr, amt)
}
2 changes: 1 addition & 1 deletion x/dao/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type AccountKeeper interface {
type BankKeeper interface {
GetAllBalances(sdk.Context, sdk.AccAddress) sdk.Coins
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromAccountToModule(sdk.Context, sdk.AccAddress, string, sdk.Coins) error
SendCoinsFromModuleToAccount(sdk.Context, string, sdk.AccAddress, sdk.Coins) error
SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
Expand Down

0 comments on commit 1ce8a79

Please sign in to comment.