Skip to content
Open
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.1.0/

## [Unreleased]

### Bug Fixes

- (wasmbinding) Set top-level `Metadata.Decimals` in `SetTokenMetadata` translation so the bank precompile and auto-deployed ERC20 wrappers report correct `decimals()` for tokenfactory denoms whose metadata is set via wasm bindings (e.g., CW20 Adapter `UpdateMetadata`).

## [v1.19.0](https://github.com/InjectiveFoundation/injective-core/releases/tag/v1.19.0) - 2026-XX-XX

### Features
Expand Down
9 changes: 5 additions & 4 deletions injective-chain/wasmbinding/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddre
sdkMsg = &tokenfactorytypes.MsgSetDenomMetadata{
Sender: contractAddr.String(),
Metadata: banktypes.Metadata{
Base: mt.Denom,
Display: mt.Symbol,
Name: mt.Name,
Symbol: mt.Symbol,
Base: mt.Denom,
Display: mt.Symbol,
Name: mt.Name,
Symbol: mt.Symbol,
Decimals: mt.Decimals,
DenomUnits: []*banktypes.DenomUnit{
{
Denom: mt.Denom,
Expand Down