Skip to content

Commit

Permalink
fix: ethereum signature buffer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Mar 13, 2023
1 parent f033397 commit 7b13e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/util/aws-kms-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function requestKmsSignature(plaintext: Buffer, kmsCredentials: Aws
if (signature.$metadata.httpStatusCode !== 200 || signature.Signature === undefined)
throw new Error(`AWS KMS call failed with: ${JSON.stringify(signature)}`);

return findEthereumSig(signature.Signature as Buffer);
return findEthereumSig(Buffer.from(signature.Signature));
} catch (e) {
throw new Error(`AWS KMS call failed with: ${JSON.stringify(e)}`);
}
Expand Down

0 comments on commit 7b13e65

Please sign in to comment.