Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

* fix hash() misuse #606

Merged
merged 1 commit into from
Jan 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/eosjs-jssig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function digestFromSerializedData(
new Buffer(serializedTransaction),
new Buffer(
serializedContextFreeData ?
new Uint8Array(e.hash(serializedContextFreeData).update(serializedContextFreeData).digest()) :
new Uint8Array(e.hash().update(serializedContextFreeData).digest()) :
new Uint8Array(32)
),
]);
Expand Down