aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-08-25 02:57:12 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 05:40:00 +0800
commitd039a1adda6fd8ce87a254310e0f56568b10136b (patch)
tree3b6a37b373fd2670c9c04fc98b3589b06d057067
parentbb4d449e92da347c305d64fbe1855b13a8db361b (diff)
downloaddexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar.gz
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar.bz2
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar.lz
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar.xz
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.tar.zst
dexon-sol-tools-d039a1adda6fd8ce87a254310e0f56568b10136b.zip
Fixed linter in signatureUtils
-rw-r--r--packages/order-utils/src/signature_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-utils/src/signature_utils.ts b/packages/order-utils/src/signature_utils.ts
index c18e895f5..e5478d4d6 100644
--- a/packages/order-utils/src/signature_utils.ts
+++ b/packages/order-utils/src/signature_utils.ts
@@ -347,7 +347,7 @@ export const signatureUtils = {
};
function hashTrezorPersonalMessage(message: Buffer): Buffer {
- const prefix = ethUtil.toBuffer('\x19Ethereum Signed Message:\n' + message.byteLength);
+ const prefix = ethUtil.toBuffer(`\x19Ethereum Signed Message:\n${message.byteLength}`);
return ethUtil.sha3(Buffer.concat([prefix, message]));
}