Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Jun 10, 2024
1 parent 3c92ad7 commit 68f75f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/rollapp/transfergenesis/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ func allTransfersReceivedEvent(raID string, nReceived uint64) sdk.Event {
)
}

// TODO: need proper testing
func getMemo(rawMemo string) (memo, error) {
if len(rawMemo) == 0 {
return memo{}, gerr.ErrNotFound
Expand Down Expand Up @@ -245,6 +244,8 @@ func getMemo(rawMemo string) (memo, error) {

func (w IBCMiddleware) registerDenomMetadata(ctx sdk.Context, rollappID, channelID string, m banktypes.Metadata) error {
if w.denomKeeper.HasDenomMetadata(ctx, m.Base) {
// Not strictly necessary but an easy optimisation, as, in general, we dont place restrictions on the number
// of genesis transfers that a rollapp might do.
return nil
}

Expand Down

0 comments on commit 68f75f6

Please sign in to comment.