Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamer committed Apr 14, 2023
1 parent 515b73b commit a05e416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (k Keeper) refundPacketToken(ctx sdk.Context, packet channeltypes.Packet, d
return err
}

voucherClassID, err := k.ParseClassTrace(ctx, data.ClassId)
voucherClassID, err := k.GetVoucherClassID(ctx, data.ClassId)
if err != nil {
return err
}
Expand Down Expand Up @@ -360,7 +360,7 @@ func (k Keeper) processReceivedPacket(ctx sdk.Context, packet channeltypes.Packe
return err
}

voucherClassID, err := k.ParseClassTrace(ctx, unprefixedClassID)
voucherClassID, err := k.GetVoucherClassID(ctx, unprefixedClassID)
if err != nil {
return err
}
Expand All @@ -382,7 +382,7 @@ func (k Keeper) processReceivedPacket(ctx sdk.Context, packet channeltypes.Packe
return nil
}

func (k Keeper) ParseClassTrace(ctx sdk.Context, classID string) (string, error) {
func (k Keeper) GetVoucherClassID(ctx sdk.Context, classID string) (string, error) {

// If "/" is not included after removing the prefix,
// it means that nft has returned to the initial chain, and the classID after removing the prefix is the real classID
Expand Down

0 comments on commit a05e416

Please sign in to comment.