-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bump] sdk version to v0.43.0-rc0 (#507)
* bump sdk version to v0.43.0-rc0 * reuse app creator * fix estimate_fee request interface unpacker * remove unused files * remove unused files * fix to use new app config at testnet launch * register all message amino codec to legacy.Cdc because authz module use this to get signbytes * prevent register codec multiple times * update cosmos proto for swagger update * register feegrant amino codec to support legacy service * change upgrade name to use -rc0
- Loading branch information
yys
authored
Jul 12, 2021
1 parent
1a0c58e
commit a2471e3
Showing
38 changed files
with
1,586 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
package app | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/codec/legacy" | ||
"github.com/cosmos/cosmos-sdk/std" | ||
|
||
"github.com/terra-money/core/app/params" | ||
) | ||
|
||
var legacyCodecRegistered = false | ||
|
||
// MakeEncodingConfig creates an EncodingConfig for testing | ||
func MakeEncodingConfig() params.EncodingConfig { | ||
encodingConfig := params.MakeEncodingConfig() | ||
std.RegisterLegacyAminoCodec(encodingConfig.Amino) | ||
std.RegisterInterfaces(encodingConfig.InterfaceRegistry) | ||
ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino) | ||
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry) | ||
|
||
if !legacyCodecRegistered { | ||
// authz module use this codec to get signbytes. | ||
// authz MsgExec can execute all message types, | ||
// so legacy.Cdc need to register all amino messages to get proper signature | ||
ModuleBasics.RegisterLegacyAminoCodec(legacy.Cdc) | ||
legacyCodecRegistered = true | ||
} | ||
|
||
return encodingConfig | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.