mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
Fix: register msgs on legacy codec (#1200)
* add deposits to genesis state * import/export genesis with deposits * add helper keeper method + update tests * invariants + tests * register invariants on module * fix genesis test invariant init * clean up invariants test * remove comment from test file * fix invariants test * register msgs on legacy codec Co-authored-by: denalimarsh <denalimarsh@gmail.com>
This commit is contained in:
parent
988836dee0
commit
60489c10a1
@ -13,6 +13,8 @@ import (
|
|||||||
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
// RegisterLegacyAminoCodec registers all the necessary types and interfaces for the
|
||||||
// savings module.
|
// savings module.
|
||||||
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||||
|
cdc.RegisterConcrete(&MsgDeposit{}, "savings/MsgDeposit", nil)
|
||||||
|
cdc.RegisterConcrete(&MsgWithdraw{}, "savings/MsgWithdraw", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user