authclient: update godoc for gas adjusted

This commit is contained in:
Federico Kunze 2020-03-19 22:42:34 -03:00
parent 3d2746434f
commit 38f4b084c1
No known key found for this signature in database
GPG Key ID: 655F93A970080A30
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ func EnrichWithGas(txBldr authtypes.TxBuilder, cliCtx context.CLIContext, msgs [
}
// CalculateGas simulates the execution of a transaction and returns
// the simulation response obtained by the query and the adjusted amount.
// the simulation response obtained by the query and the adjusted gas amount.
func CalculateGas(
queryFunc func(string, []byte) ([]byte, int64, error), cdc *codec.Codec,
txBytes []byte, adjustment float64,
@ -271,8 +271,8 @@ func GetTxEncoder(cdc *codec.Codec) (encoder sdk.TxEncoder) {
return encoder
}
// nolint
// SimulateMsgs simulates the transaction and returns the simulation response and the adjusted value.
// simulateMsgs simulates the transaction and returns the simulation response and
// the adjusted gas value.
func simulateMsgs(txBldr authtypes.TxBuilder, cliCtx context.CLIContext, msgs []sdk.Msg) (sdk.SimulationResponse, uint64, error) {
txBytes, err := txBldr.BuildTxForSim(msgs)
if err != nil {