1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-06-20 20:46:31 +00:00

chore: update to new multiformats ()

BREAKING CHANGE: uses the CID class from the new multiformats module

Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
This commit is contained in:
Alex Potsides
2021-07-09 07:43:34 +01:00
committed by GitHub
parent 39b03586e8
commit 13cf476148
19 changed files with 81 additions and 78 deletions
.github/workflows
examples
libp2p-in-the-browser
peer-and-content-routing
webrtc-direct
package.json
src
circuit
content-routing
peer-store
record
peer-record
test

@ -52,7 +52,7 @@ describe('Dialing (via relay, TCP)', () => {
await libp2p.stop()
// Clear the peer stores
for (const peerIdStr of libp2p.peerStore.peers.keys()) {
const peerId = PeerId.createFromCID(peerIdStr)
const peerId = PeerId.createFromB58String(peerIdStr)
libp2p.peerStore.delete(peerId)
}
}))