Skip to content

Commit

Permalink
Fixed err not being checked on init genesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix committed Feb 18, 2024
1 parent aa0d59f commit cc518f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ github.com/dymensionxyz/ethermint v0.22.0-dymension-v0.3 h1:iAtAivMtJh2Ublnq2Kas
github.com/dymensionxyz/ethermint v0.22.0-dymension-v0.3/go.mod h1:O2J61ZwM0Vdms6pRa1fb43pwmCuNRctro3AB90WlOc0=
github.com/dymensionxyz/osmosis/osmomath v0.0.6-dym-v0.0.1 h1:59ZE3Ocrn04MUpb5VJgfi24eDcnQ9VBfCSw0Mx1n7OI=
github.com/dymensionxyz/osmosis/osmomath v0.0.6-dym-v0.0.1/go.mod h1:2idySYJxP5YfMAEeSeqD8e7fSchfsI4jn7XFHJgNUsM=
github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.3-alpha.1 h1:ryioCuV8k52MgBdK1BcsbRebFcvfXojfsOHDHg9tnkE=
github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.3-alpha.1 h1:K0/44d7M+Nv12tn+ZCHImkXHoUMjIq7AjvUP7PVj0k4=
github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.3-alpha.1/go.mod h1:BHHGzl86byC0sov3EUfTzyDuIsGY//rcrek6gCOa+fw=
github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
Expand Down
9 changes: 4 additions & 5 deletions x/eibc/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
for _, demandOrder := range genState.DemandOrders {
// Create a copy of demandOrder to avoid reusing the same memory address
demandOrderCopy := demandOrder
k.SetDemandOrder(ctx, &demandOrderCopy)
// err := k.SetDemandOrder(ctx, &demandOrderCopy)
// if err != nil {
// panic(err)
// }
err := k.SetDemandOrder(ctx, &demandOrderCopy)
if err != nil {
panic(err)
}

}
}
Expand Down

0 comments on commit cc518f1

Please sign in to comment.