diff --git a/x/profiles/types/models_packets.go b/x/profiles/types/models_packets.go index a172c0641a..5a4cdf22e3 100644 --- a/x/profiles/types/models_packets.go +++ b/x/profiles/types/models_packets.go @@ -65,3 +65,20 @@ func (p LinkChainAccountPacketData) Validate() error { func (p LinkChainAccountPacketData) GetBytes(cdc codec.Codec) ([]byte, error) { return sdk.SortJSON(cdc.MustMarshalJSON(&p)) } + +// UnpackInterfaces implements codectypes.UnpackInterfacesMessage +func (p *LinkChainAccountPacketData) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { + var address AddressData + if err := unpacker.UnpackAny(p.SourceAddress, &address); err != nil { + return err + } + + if err := p.SourceProof.UnpackInterfaces(unpacker); err != nil { + return err + } + + if err := p.DestinationProof.UnpackInterfaces(unpacker); err != nil { + return err + } + return nil +}