From ed21f6518ab5cd30724d1b5900ab90b4e0aeed89 Mon Sep 17 00:00:00 2001 From: Malte Herrmann Date: Thu, 2 Oct 2025 22:25:36 +0200 Subject: [PATCH 1/3] add validate method to forwarding attributes interface --- testutil/testdata/testdata.go | 2 ++ types/core/attributes.go | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/testutil/testdata/testdata.go b/testutil/testdata/testdata.go index 6d7dbb6a..b6303e26 100644 --- a/testutil/testdata/testdata.go +++ b/testutil/testdata/testdata.go @@ -30,3 +30,5 @@ var ( func (a *TestForwardingAttr) CounterpartyID() string { return a.Planet } + +func (a *TestForwardingAttr) Validate() error { return nil } diff --git a/types/core/attributes.go b/types/core/attributes.go index 033ba5ce..a88216df 100644 --- a/types/core/attributes.go +++ b/types/core/attributes.go @@ -34,6 +34,8 @@ type ActionAttributes interface { // attribute type has to implement. type ForwardingAttributes interface { proto.Message - // Returns the destination chain identifier. + // CounterpartyID returns the destination chain identifier. CounterpartyID() string + // Validate the attributes. + Validate() error } From 20c9c67c799e33785bda344cc7f5142032436bf6 Mon Sep 17 00:00:00 2001 From: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:16:53 +0200 Subject: [PATCH 2/3] Update types/core/attributes.go Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com> --- types/core/attributes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/core/attributes.go b/types/core/attributes.go index a88216df..ff087366 100644 --- a/types/core/attributes.go +++ b/types/core/attributes.go @@ -36,6 +36,6 @@ type ForwardingAttributes interface { proto.Message // CounterpartyID returns the destination chain identifier. CounterpartyID() string - // Validate the attributes. + // Validate returns an error if the attributes are not valid. Validate() error } From 0ee3fd942be0ba0fe292d7e41003d336771e1c85 Mon Sep 17 00:00:00 2001 From: stepit Date: Mon, 6 Oct 2025 12:30:12 +0200 Subject: [PATCH 3/3] chore: signed msg for auto-merge