Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(async response => {
const transactionBlob = response.getTransactionBlob();
const transactionHash = Utils.transactionBlobToTransactionHash(
transactionBlob
);
if (!transactionHash) {
return Promise.reject(
new Error(XpringClientErrorMessages.malformedResponse)
);
}
return Promise.resolve(transactionHash);
});
}