@dfns/blockchain-integration
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -11,3 +11,3 @@ "use strict"; | ||
includeErrorStack: true, | ||
parseBody: true, | ||
parseBody: false, | ||
}); | ||
@@ -46,5 +46,13 @@ const CLIENT_PREFIX = prefix; | ||
console.log("EVENT: ", event); | ||
let body; | ||
if (event.isBase64Encoded) { | ||
let buff = new Buffer(event.body, "base64"); | ||
body = JSON.parse(buff.toString("ascii")); | ||
} | ||
else { | ||
body = JSON.parse(event.body); | ||
} | ||
const tx = await wallet.sendPaymentTx({ | ||
to: event.body.to, | ||
value: event.body.value, | ||
to: body.to, | ||
value: body.value, | ||
}); | ||
@@ -51,0 +59,0 @@ return { |
{ | ||
"name": "@dfns/blockchain-integration", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Blockchain integration Kit for DFNS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9507
215