aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils/signing_utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/src/utils/signing_utils.ts')
-rw-r--r--packages/contracts/src/utils/signing_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/signing_utils.ts b/packages/contracts/src/utils/signing_utils.ts
index d56d2cd44..9c711c72c 100644
--- a/packages/contracts/src/utils/signing_utils.ts
+++ b/packages/contracts/src/utils/signing_utils.ts
@@ -3,7 +3,7 @@ import * as ethUtil from 'ethereumjs-util';
export const signingUtils = {
signMessage(message: Buffer, privateKey: Buffer, signatureType: SignatureType): Buffer {
- if (signatureType === SignatureType.Ecrecover) {
+ if (signatureType === SignatureType.EthSign) {
const prefixedMessage = ethUtil.hashPersonalMessage(message);
const ecSignature = ethUtil.ecsign(prefixedMessage, privateKey);
const signature = Buffer.concat([