Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: upgrade libp2p record version (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and Alan Shaw committed Oct 29, 2018
1 parent c240d49 commit 93b344b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"libp2p-keychain": "~0.3.1",
"libp2p-mdns": "~0.12.0",
"libp2p-mplex": "~0.8.0",
"libp2p-record": "~0.5.1",
"libp2p-record": "~0.6.0",
"libp2p-secio": "~0.10.0",
"libp2p-tcp": "~0.12.0",
"libp2p-webrtc-star": "~0.15.3",
Expand Down
4 changes: 2 additions & 2 deletions src/core/ipns/publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class IpnsPublisher {
// Marshal record
const entryData = ipns.marshal(entry)
// Marshal to libp2p record
rec = new Record(key.toBuffer(), entryData, peerId)
rec = new Record(key.toBuffer(), entryData)
} catch (err) {
log.error(err)
return callback(err)
Expand Down Expand Up @@ -140,7 +140,7 @@ class IpnsPublisher {
let rec
try {
// Marshal to libp2p record
rec = new Record(key.toBuffer(), publicKey.bytes, peerId)
rec = new Record(key.toBuffer(), publicKey.bytes)
} catch (err) {
log.error(err)
return callback(err)
Expand Down

0 comments on commit 93b344b

Please sign in to comment.