gridplus-sdk
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "gridplus-sdk", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "SDK to interact with GridPlus Lattice1 device", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -52,3 +52,3 @@ // Utils for Ethereum transactions. This is effecitvely a shim of ethereumjs-util, which | ||
const digest = prehash ? prehash : eip712.TypedDataUtils.encodeDigest(req.input.payload); | ||
return addRecoveryParam(digest, sig, signer) | ||
return addRecoveryParam(digest, sig, signer, { type: 'EIP712_MSG' }) | ||
} else { | ||
@@ -410,2 +410,4 @@ throw new Error('Unsupported protocol'); | ||
return ensureHexBuffer(v, true); // 0 or 1, with 0 expected as an empty buffer | ||
} else if (type === 'EIP712_MSG') { | ||
return ensureHexBuffer(v, false); // 0 or 1, with 0 expected as a number | ||
} | ||
@@ -412,0 +414,0 @@ |
111741
2538