This commit is contained in:
parent
afae857b2b
commit
50580a1d91
|
@ -307,12 +307,21 @@ class RequestClient {
|
||||||
// eslint-disable-next-line no-empty
|
// eslint-disable-next-line no-empty
|
||||||
}
|
}
|
||||||
|
|
||||||
const decodedMetadata =
|
let decodedMetadata
|
||||||
ApplicationMetadataMessage.fromBinary(messageToDecode)
|
try {
|
||||||
|
decodedMetadata = ApplicationMetadataMessage.fromBinary(messageToDecode)
|
||||||
|
} catch {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (!decodedMetadata.payload) {
|
if (!decodedMetadata.payload) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!decodedMetadata.signature.length) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const signerPublicKeyBytes = recoverPublicKey(
|
const signerPublicKeyBytes = recoverPublicKey(
|
||||||
decodedMetadata.signature,
|
decodedMetadata.signature,
|
||||||
decodedMetadata.payload
|
decodedMetadata.payload
|
||||||
|
|
Loading…
Reference in New Issue