Skip to content

Commit

Permalink
Use GetSenderAccount method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Jan 29, 2024
1 parent 61c2011 commit 1c8bf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/axelarcork/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (k Keeper) EndBlocker(ctx sdk.Context) {
// Sweep all axelarcork sender module account balances to the community pool. Because this account is the
// sender for transfers created by RelayCork calls, funds will not be returned to the caller if the IBC
// transfer fails or gas is refunded.
moduleAcct := k.accountKeeper.GetModuleAddress(types.ModuleName)
moduleAcct := k.GetSenderAccount(types.ModuleName)

Check failure on line 62 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use types.ModuleName (untyped string constant "axelarcork") as "github.com/cosmos/cosmos-sdk/types".Context value in argument to k.GetSenderAccount

Check failure on line 62 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use types.ModuleName (untyped string constant "axelarcork") as "github.com/cosmos/cosmos-sdk/types".Context value in argument to k.GetSenderAccount

Check failure on line 62 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use types.ModuleName (untyped string constant "axelarcork") as "github.com/cosmos/cosmos-sdk/types".Context value in argument to k.GetSenderAccount

Check failure on line 62 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / test (1.19, ubuntu-latest)

cannot use types.ModuleName (untyped string constant "axelarcork") as "github.com/cosmos/cosmos-sdk/types".Context value in argument to k.GetSenderAccount
balances := k.bankKeeper.GetAllBalances(ctx, moduleAcct)

Check failure on line 63 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use moduleAcct (variable of type "github.com/cosmos/cosmos-sdk/x/auth/types".ModuleAccountI) as type "github.com/cosmos/cosmos-sdk/types".AccAddress in argument to k.bankKeeper.GetAllBalances) (typecheck)

Check failure on line 63 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use moduleAcct (variable of type "github.com/cosmos/cosmos-sdk/x/auth/types".ModuleAccountI) as type "github.com/cosmos/cosmos-sdk/types".AccAddress in argument to k.bankKeeper.GetAllBalances) (typecheck)

Check failure on line 63 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use moduleAcct (variable of type "github.com/cosmos/cosmos-sdk/x/auth/types".ModuleAccountI) as type "github.com/cosmos/cosmos-sdk/types".AccAddress in argument to k.bankKeeper.GetAllBalances) (typecheck)

Check failure on line 63 in x/axelarcork/keeper/abci.go

View workflow job for this annotation

GitHub Actions / test (1.19, ubuntu-latest)

cannot use moduleAcct (variable of type "github.com/cosmos/cosmos-sdk/x/auth/types".ModuleAccountI) as type "github.com/cosmos/cosmos-sdk/types".AccAddress in argument to k.bankKeeper.GetAllBalances
if err := k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, distributionTypes.ModuleName, balances); err != nil {
panic(err)
Expand Down

0 comments on commit 1c8bf0c

Please sign in to comment.