Skip to content

Commit

Permalink
fix set hostzone
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed Oct 31, 2023
1 parent 83e6408 commit 0cc89f5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion x/feeabs/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ func (k Keeper) SetHostZoneProposal(ctx sdk.Context, p *types.SetHostZoneProposa
return types.ErrHostZoneConfigNotFound
}

err := k.SetHostZoneConfig(ctx, *p.HostChainConfig)
// Delete all hostzone
err := k.DeleteHostZoneConfig(ctx, p.HostChainConfig.IbcDenom)
if err != nil {
return err
}

// set new hostzone
err = k.SetHostZoneConfig(ctx, *p.HostChainConfig)
if err != nil {
return err
}
Expand Down

0 comments on commit 0cc89f5

Please sign in to comment.