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

Commit 93b344b

Browse files
vasco-santosAlan Shaw
authored and
Alan Shaw
committed
chore: upgrade libp2p record version (#1646)
1 parent c240d49 commit 93b344b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"libp2p-keychain": "~0.3.1",
126126
"libp2p-mdns": "~0.12.0",
127127
"libp2p-mplex": "~0.8.0",
128-
"libp2p-record": "~0.5.1",
128+
"libp2p-record": "~0.6.0",
129129
"libp2p-secio": "~0.10.0",
130130
"libp2p-tcp": "~0.12.0",
131131
"libp2p-webrtc-star": "~0.15.3",

src/core/ipns/publisher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class IpnsPublisher {
102102
// Marshal record
103103
const entryData = ipns.marshal(entry)
104104
// Marshal to libp2p record
105-
rec = new Record(key.toBuffer(), entryData, peerId)
105+
rec = new Record(key.toBuffer(), entryData)
106106
} catch (err) {
107107
log.error(err)
108108
return callback(err)
@@ -140,7 +140,7 @@ class IpnsPublisher {
140140
let rec
141141
try {
142142
// Marshal to libp2p record
143-
rec = new Record(key.toBuffer(), publicKey.bytes, peerId)
143+
rec = new Record(key.toBuffer(), publicKey.bytes)
144144
} catch (err) {
145145
log.error(err)
146146
return callback(err)

0 commit comments

Comments
 (0)