chore: fix spelling errors (#20674)

Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
This commit is contained in:
Cosmos SDK 2024-06-14 15:05:00 +02:00 committed by GitHub
parent 7e848bca34
commit 32bdca3600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,7 @@ func parseHashFromInput(in []byte) ([]byte, error) {
// That outputs a sdk.TxResponse as either the json or yaml. As json, we can't unmarshal it back into that struct,
// though, because the height field ends up quoted which confuses json.Unmarshal (because it's for an int64 field).
// Try to find the txhash from json ouptut.
// Try to find the txhash from json output.
resultTx := make(map[string]json.RawMessage)
if err := json.Unmarshal(in, &resultTx); err == nil && len(resultTx["txhash"]) > 0 {
// input was JSON, return the hash