osmosis-labs / osmosis

The AMM Laboratory
https://app.osmosis.zone
Apache License 2.0
880 stars 568 forks source link

[Bug]: AppTemplate accessing unexisting field #8491

Closed najeal closed 1 week ago

najeal commented 1 week ago

What happened?

A bug has been introduced in #8487 PR.

New content has been added to the AppTemplate:

pair-topic-id = "{{ .IndexerConfig.PairTopicId }}"

When executing the template we provide an Indexer Config with the field PairTopicID instead of PairTopicId.

The template execution fails and panic because of this.

Osmosis Version

main

How to reproduce?

example: run osmosisd q --help

PaddyMc commented 1 week ago

Ty for submitting an issue and also fixing it, reviewing the PR now