Skip to content

Commit

Permalink
add-net-asset-values command now correctly uses the from flag's `…
Browse files Browse the repository at this point in the history
…AccAddress` (#1996)

* Add from address and not from value from cmd

* add change log entry

* remove trailing spaces
  • Loading branch information
nullpointer0x00 authored May 23, 2024
1 parent 86b2af7 commit 9eb2170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
* Rosetta has been removed from the `provenanced` executable [#1981](https://github.com/provenance-io/provenance/pull/1981).
It is now a stand-alone service. See: <https://github.com/cosmos/rosetta> for more info.

### Bug Fixes

* The `add-net-asset-values` command now correctly uses the from `flag`'s `AccAddress` [#1995](https://github.com/provenance-io/provenance/issues/1995).

### Deprecated

* In the config commands, the "tendermint" and "tm" options are deprecated, replaced with "cometbft", "comet", and "cmt" [#1968](https://github.com/provenance-io/provenance/pull/1968).
Expand Down
2 changes: 1 addition & 1 deletion x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ func GetCmdAddNetAssetValues() *cobra.Command {
return err
}

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), types.NewMsgAddNetAssetValuesRequest(denom, clientCtx.From, netAssetValues))
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), types.NewMsgAddNetAssetValuesRequest(denom, clientCtx.GetFromAddress().String(), netAssetValues))
},
}
flags.AddTxFlagsToCmd(cmd)
Expand Down

0 comments on commit 9eb2170

Please sign in to comment.