Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <[email protected]>
  • Loading branch information
yihuang committed Oct 23, 2024
1 parent 41e44fe commit 72ed9c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [#261](https://github.com/crypto-org-chain/cosmos-sdk/pull/261) `ctx.BlockHeader` don't do protobuf deep copy, shallow copy seems enough, reduce scope of mutex in `PriorityNonceMempool.Remove`.
* [#507](https://github.com/crypto-org-chain/cosmos-sdk/pull/507) mempool respect gas wanted returned by ante handler
* [#744](https://github.com/crypto-org-chain/cosmos-sdk/pull/744) Pass raw transactions to tx executor so it can do pre-estimations.
* [#]() Optimize subUnlockedCoins implementation.
* [#865](https://github.com/crypto-org-chain/cosmos-sdk/pull/865) Optimize subUnlockedCoins implementation.

## [Unreleased]

Expand Down
4 changes: 2 additions & 2 deletions x/bank/keeper/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"cosmossdk.io/core/store"
errorsmod "cosmossdk.io/errors"
"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"
"cosmossdk.io/math"
storetypes "cosmossdk.io/store/types"

"github.com/cosmos/cosmos-sdk/codec"
Expand Down Expand Up @@ -295,7 +295,7 @@ func (k BaseSendKeeper) subUnlockedCoins(ctx context.Context, addr sdk.AccAddres
)
}

newBalance := sdk.UnsafeNewCoin(coin.Denom, sdkmath.NewIntFromBigIntMut(balance.Sub(balance, amount)))
newBalance := sdk.UnsafeNewCoin(coin.Denom, math.NewIntFromBigIntMut(balance.Sub(balance, amount)))
if err := k.setBalance(ctx, addr, newBalance); err != nil {
return err
}
Expand Down

0 comments on commit 72ed9c5

Please sign in to comment.