From 6529e060575c22612ded98545d1915686c54161d Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Thu, 19 Jul 2018 17:51:03 +1000 Subject: Rename call data schema id to CallData. Check for TypedArray when hashing data in order-utils crypto --- packages/order-utils/src/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/order-utils') diff --git a/packages/order-utils/src/crypto.ts b/packages/order-utils/src/crypto.ts index 517ca2840..0f1504a72 100644 --- a/packages/order-utils/src/crypto.ts +++ b/packages/order-utils/src/crypto.ts @@ -32,7 +32,7 @@ export const crypto = { argTypes.push('address'); } else if (_.isString(arg)) { argTypes.push('string'); - } else if (_.isBuffer(arg)) { + } else if (_.isBuffer(arg) || _.isTypedArray(arg)) { argTypes.push('bytes'); } else if (_.isBoolean(arg)) { argTypes.push('bool'); -- cgit v1.2.3 From 81007c453c8885dd1d7c89d22a20d0785bf17c88 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Thu, 19 Jul 2018 19:24:26 +1000 Subject: Update CHANGELOG --- packages/order-utils/CHANGELOG.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/order-utils') diff --git a/packages/order-utils/CHANGELOG.json b/packages/order-utils/CHANGELOG.json index 4358c2c9c..e61033c53 100644 --- a/packages/order-utils/CHANGELOG.json +++ b/packages/order-utils/CHANGELOG.json @@ -9,6 +9,10 @@ { "note": "Export parseECSignature method", "pr": 684 + }, + { + "note": "Handle Typed Arrays when hashing data", + "pr": 894 } ] }, -- cgit v1.2.3