Skip to content

Commit

Permalink
fix sha256 test
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Oct 19, 2023
1 parent 0753b1b commit 6c3ce3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/web5-js/encoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function encoderSha256Encode(req: Request, res: Response) {

const resp: paths["/encoders/sha256/encode"]["post"]["responses"]["200"]["content"]["application/json"] =
{
data: Convert.arrayBuffer(sha256(requestBody.data)).toString()
data: Convert.arrayBuffer(sha256(requestBody.data)).toHex()
};

res.json(resp);
Expand Down

0 comments on commit 6c3ce3c

Please sign in to comment.