Skip to content

Commit

Permalink
fix denom setting in markerMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Nov 1, 2023
1 parent 67f9e74 commit 3e71863
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ func updateIbcMarkerDenomMetadata(ctx sdk.Context, app *App) {
chainID := app.Ics20MarkerHooks.GetChainID(ctx, parts[0], parts[1], app.IBCKeeper)
markerMetadata := banktypes.Metadata{
Base: record.GetDenom(),
Name: chainID + "/" + record.GetDenom(),
Display: chainID + "/" + record.GetDenom(),
Description: record.GetDenom() + " from chain " + chainID,
Name: chainID + "/" + denomTrace.BaseDenom,
Display: chainID + "/" + denomTrace.BaseDenom,
Description: denomTrace.BaseDenom + " from chain " + chainID,
}
err := app.MarkerKeeper.SetDenomMetaData(ctx, markerMetadata, authtypes.NewModuleAddress(types.ModuleName))
if err != nil {
panic(fmt.Sprintf("unable to set denom metadata for %v on chain-id %v: %v", record.GetDenom(), chainID, err))
panic(fmt.Sprintf("unable to set denom metadata for %v with base denom %v and chain-id %v: %v", record.GetDenom(), denomTrace.BaseDenom, chainID, err))

Check warning on line 399 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L384-L399

Added lines #L384 - L399 were not covered by tests
}
}
}
Expand Down

0 comments on commit 3e71863

Please sign in to comment.