Skip to content

Commit

Permalink
return error instead of panic in InitGenesis
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed May 24, 2024
1 parent 411be56 commit 1480f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/fbridge/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (k Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState) error {

for _, sw := range gs.BridgeSwitches {
if err := k.setBridgeSwitch(ctx, sdk.MustAccAddressFromBech32(sw.Guardian), sw.Status); err != nil {
panic(err)
return err
}
}

Expand Down

0 comments on commit 1480f67

Please sign in to comment.