Skip to content

Commit

Permalink
Merge pull request #111 from ChainSafe/cayman/convert-buffer
Browse files Browse the repository at this point in the history
Convert stray Uint8Array to Buffer
  • Loading branch information
wemeetagain committed Mar 29, 2021
2 parents 671a9ac + 1fd19ca commit 4eb0fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keypair/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export function createKeypairFromPeerId(peerId: PeerId): IKeypair {
return createKeypair(
pub.Type as KeypairType,
peerId.privKey ? toBuffer(peerId.privKey.marshal()) : undefined,
pub.Data
toBuffer(pub.Data)
);
}

0 comments on commit 4eb0fc1

Please sign in to comment.