Skip to content

Commit

Permalink
fix: atlas serialization of EntryToHash and CID in ToMultihash
Browse files Browse the repository at this point in the history
  • Loading branch information
glouvigny authored and aeddi committed Jun 12, 2019
1 parent a2deb50 commit 0803639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entry/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type EntryToHash struct {
var AtlasEntryToHash = atlas.BuildEntry(EntryToHash{}).
StructMap().
AddField("Hash", atlas.StructMapEntry{SerialName: "hash"}).
AddField("LogID", atlas.StructMapEntry{SerialName: "id"}).
AddField("ID", atlas.StructMapEntry{SerialName: "id"}).
AddField("Payload", atlas.StructMapEntry{SerialName: "payload"}).
AddField("Next", atlas.StructMapEntry{SerialName: "next"}).
AddField("V", atlas.StructMapEntry{SerialName: "v"}).
Expand Down Expand Up @@ -172,7 +172,7 @@ func Verify(identity identityprovider.Interface, entry *Entry) error {

func ToMultihash(ipfsInstance *io.IpfsServices, entry *Entry) (cid.Cid, error) {
e := &Entry{
Hash: nil,
Hash: cid.Cid{},
LogID: entry.LogID,
Payload: entry.Payload,
Next: entry.Next,
Expand Down

0 comments on commit 0803639

Please sign in to comment.