refactor!: make simapp.MakeTestEncodingConfig private (#12747)

* feat: make `simapp.MakeTestEncodingConfig` private

* fix legacy build

* update changelog and upgrading.md

* updates docs
This commit is contained in:
Julien Robert
2022-07-27 17:23:56 +02:00
committed by GitHub
parent f7db013dc2
commit f770f8cac6
28 changed files with 149 additions and 136 deletions
+3 -4
View File
@@ -121,12 +121,11 @@ import (
)
func sendTx() error {
// Choose your codec: Amino or Protobuf. Here, we use Protobuf, given by the
// following function.
encCfg := simapp.MakeTestEncodingConfig()
// Choose your codec: Amino or Protobuf. Here, we use Protobuf, given by the following function.
app := simapp.NewSimApp(...)
// Create a new TxBuilder.
txBuilder := encCfg.TxConfig.NewTxBuilder()
txBuilder := app.TxConfig().NewTxBuilder()
// --snip--
}