From 1ce8a7987b9a3dc08a0da7d65156fb4092c736e0 Mon Sep 17 00:00:00 2001 From: Aaron Kutch Date: Mon, 29 May 2023 18:53:49 -0500 Subject: [PATCH] gofumpt --- testutil/integration/onomy_chain.go | 4 ++-- x/dao/keeper/treasury.go | 2 +- x/dao/types/expected_keepers.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testutil/integration/onomy_chain.go b/testutil/integration/onomy_chain.go index 65829b94..96cb5a3c 100644 --- a/testutil/integration/onomy_chain.go +++ b/testutil/integration/onomy_chain.go @@ -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 { @@ -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 { diff --git a/x/dao/keeper/treasury.go b/x/dao/keeper/treasury.go index b1dc668c..01da6bff 100644 --- a/x/dao/keeper/treasury.go +++ b/x/dao/keeper/treasury.go @@ -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) } diff --git a/x/dao/types/expected_keepers.go b/x/dao/types/expected_keepers.go index 920cbd83..98602d5e 100644 --- a/x/dao/types/expected_keepers.go +++ b/x/dao/types/expected_keepers.go @@ -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