mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-24 16:51:46 +00:00
Fix test
This commit is contained in:
@ -135,7 +135,7 @@ export class IKHandshake implements IHandshake {
|
||||
|
||||
private setEarlyData(data: Uint8Array|null|undefined): void {
|
||||
if(data){
|
||||
this.earlyData = Buffer.from(data.buffer, data.byteOffset, data.length);
|
||||
this.remoteEarlyData = Buffer.from(data.buffer, data.byteOffset, data.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ export class Noise implements INoiseConnection {
|
||||
|
||||
return {
|
||||
conn,
|
||||
earlyData: handshake.earlyData,
|
||||
remoteEarlyData: handshake.remoteEarlyData,
|
||||
remotePeer: handshake.remotePeer,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user