Rename call data schema id to CallData.

Check for TypedArray when hashing data in order-utils crypto
This commit is contained in:
Jacob Evans
2018-07-19 17:51:03 +10:00
parent 3a18c249f5
commit 6529e06057
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
export const callDataSchema = {
id: '/TxData',
id: '/CallData',
properties: {
from: { $ref: '/Address' },
to: { $ref: '/Address' },

View File

@@ -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');