diff --git a/intents/intent.go b/intents/intent.go index 1e9ba8e4..26f60eee 100644 --- a/intents/intent.go +++ b/intents/intent.go @@ -42,6 +42,14 @@ func (i *Intent) UnmarshalJSON(data []byte) error { return nil } +func (i *Intent) MarshalJSON() ([]byte, error) { + return json.Marshal(JSONIntent{ + Version: i.Version, + Packet: i.Packet, + Signatures: i.signatures, + }) +} + func (intent *Intent) Hash() ([]byte, error) { packet := intent.Packet