From 622b001a23bc2dd13aa76917efe134fd4f33404d Mon Sep 17 00:00:00 2001 From: slandymani Date: Tue, 2 Apr 2024 16:22:38 +0300 Subject: [PATCH] fix parsing genesis --- modules/oracle/handle_genesis.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/oracle/handle_genesis.go b/modules/oracle/handle_genesis.go index c4daed156..2a3bbd460 100644 --- a/modules/oracle/handle_genesis.go +++ b/modules/oracle/handle_genesis.go @@ -30,8 +30,8 @@ func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json []byte{}, dataSource.Fee, sdk.AccAddress(dataSource.Treasury), - sdk.AccAddress(dataSource.Owner), - sdk.AccAddress(dataSource.Owner), + sdk.MustAccAddressFromBech32(dataSource.Owner), + sdk.MustAccAddressFromBech32(dataSource.Owner), )) if err != nil { return fmt.Errorf("failed to save data source: %s", err) @@ -45,8 +45,8 @@ func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json oracleScript.Schema, oracleScript.SourceCodeURL, []byte{}, - sdk.AccAddress(oracleScript.Owner), - sdk.AccAddress(oracleScript.Owner), + sdk.MustAccAddressFromBech32(oracleScript.Owner), + sdk.MustAccAddressFromBech32(oracleScript.Owner), )) if err != nil { return fmt.Errorf("failed to save oracle script: %s", err)