aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag
diff options
context:
space:
mode:
Diffstat (limited to 'entity/dag')
-rw-r--r--entity/dag/common_test.go2
-rw-r--r--entity/dag/entity.go2
-rw-r--r--entity/dag/operation_pack.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/entity/dag/common_test.go b/entity/dag/common_test.go
index 25289b76..532e3ff8 100644
--- a/entity/dag/common_test.go
+++ b/entity/dag/common_test.go
@@ -67,7 +67,7 @@ func (o *op2) Author() identity.Interface {
return o.author
}
-func unmarshaler(author identity.Interface, raw json.RawMessage) (Operation, error) {
+func unmarshaler(author identity.Interface, raw json.RawMessage, resolver identity.Resolver) (Operation, error) {
var t struct {
OperationType int `json:"type"`
}
diff --git a/entity/dag/entity.go b/entity/dag/entity.go
index ffdbe335..0760cdec 100644
--- a/entity/dag/entity.go
+++ b/entity/dag/entity.go
@@ -26,7 +26,7 @@ type Definition struct {
// the Namespace in git references (bugs, prs, ...)
Namespace string
// a function decoding a JSON message into an Operation
- OperationUnmarshaler func(author identity.Interface, raw json.RawMessage) (Operation, error)
+ OperationUnmarshaler func(author identity.Interface, raw json.RawMessage, resolver identity.Resolver) (Operation, error)
// the expected format version number, that can be used for data migration/upgrade
FormatVersion uint
}
diff --git a/entity/dag/operation_pack.go b/entity/dag/operation_pack.go
index d825281b..8ca2ff56 100644
--- a/entity/dag/operation_pack.go
+++ b/entity/dag/operation_pack.go
@@ -314,7 +314,7 @@ func unmarshallPack(def Definition, resolver identity.Resolver, data []byte) ([]
for _, raw := range aux.Operations {
// delegate to specialized unmarshal function
- op, err := def.OperationUnmarshaler(author, raw)
+ op, err := def.OperationUnmarshaler(author, raw, resolver)
if err != nil {
return nil, nil, err
}