Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion giga/deps/xbank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func (k BaseKeeper) createCoins(ctx sdk.Context, moduleName string, amounts sdk.
k.SetSupply(ctx, supply)
}

logger.Info("minted coins from module account", "amount", amounts, "from", moduleName)
logger.Debug("minted coins from module account", "amount", amounts, "from", moduleName)

// emit mint event
ctx.EventManager().EmitEvent(
Expand Down
6 changes: 2 additions & 4 deletions giga/deps/xevm/state/mock_balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ func (s *DBImpl) topOffAccount(seiAddr sdk.AccAddress, amt *big.Int) {
s.k.AccountKeeper().SetAccount(s.ctx, s.k.AccountKeeper().NewAccountWithAddress(s.ctx, seiAddr))
}

// Mint and send (use NopLogger to suppress log spam)
usei, wei := SplitUseiWeiAmount(amt)
coinsAmt := sdk.NewCoins(sdk.NewCoin(s.k.GetBaseDenom(s.ctx), usei.Add(sdk.OneInt())))
ctx := s.ctx
if err := s.k.BankKeeper().MintCoins(ctx, types.ModuleName, coinsAmt); err != nil {
if err := s.k.BankKeeper().MintCoins(s.ctx, types.ModuleName, coinsAmt); err != nil {
return
}
moduleAddr := s.k.AccountKeeper().GetModuleAddress(types.ModuleName)
_ = s.k.BankKeeper().SendCoinsAndWei(ctx, moduleAddr, seiAddr, usei, wei)
_ = s.k.BankKeeper().SendCoinsAndWei(s.ctx, moduleAddr, seiAddr, usei, wei)
}
2 changes: 1 addition & 1 deletion sei-cosmos/x/bank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func (k BaseKeeper) createCoins(ctx sdk.Context, moduleName string, amounts sdk.
k.SetSupply(ctx, supply)
}

logger.Info("minted coins from module account", "amount", amounts, "from", moduleName)
logger.Debug("minted coins from module account", "amount", amounts, "from", moduleName)

// emit mint event
ctx.EventManager().EmitEvent(
Expand Down
6 changes: 2 additions & 4 deletions x/evm/state/mock_balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ func (s *DBImpl) topOffAccount(seiAddr sdk.AccAddress, amt *big.Int) {
s.k.AccountKeeper().SetAccount(s.ctx, s.k.AccountKeeper().NewAccountWithAddress(s.ctx, seiAddr))
}

// Mint and send (use NopLogger to suppress log spam)
usei, wei := SplitUseiWeiAmount(amt)
coinsAmt := sdk.NewCoins(sdk.NewCoin(s.k.GetBaseDenom(s.ctx), usei.Add(sdk.OneInt())))
ctx := s.ctx
if err := s.k.BankKeeper().MintCoins(ctx, types.ModuleName, coinsAmt); err != nil {
if err := s.k.BankKeeper().MintCoins(s.ctx, types.ModuleName, coinsAmt); err != nil {
return
}
moduleAddr := s.k.AccountKeeper().GetModuleAddress(types.ModuleName)
_ = s.k.BankKeeper().SendCoinsAndWei(ctx, moduleAddr, seiAddr, usei, wei)
_ = s.k.BankKeeper().SendCoinsAndWei(s.ctx, moduleAddr, seiAddr, usei, wei)
}
Loading