Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
res.then((r: Result) => {
if (fluence.isValue(r)) {
let strResult = Buffer.from(r.hex(), 'hex').toString();
console.log(`the result is:\n ${strResult}`);
}
});
return res;
pr.then((r) => {
if (fluence.isValue(r)) {
let strRes = r.asString().replace('\\n', newLine);
resultField.value += sep + newLine + strRes + newLine + sep;
}
});