Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions testutil/testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ var (
func (a *TestForwardingAttr) CounterpartyID() string {
return a.Planet
}

func (a *TestForwardingAttr) Validate() error { return nil }
4 changes: 3 additions & 1 deletion types/core/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 returns an error if the attributes are not valid.
Validate() error
}