Skip to content

Commit

Permalink
fix parsing genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed Apr 2, 2024
1 parent 0d48e60 commit 622b001
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/oracle/handle_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 622b001

Please sign in to comment.