Rename call data schema id to CallData.
Check for TypedArray when hashing data in order-utils crypto
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const callDataSchema = {
|
||||
id: '/TxData',
|
||||
id: '/CallData',
|
||||
properties: {
|
||||
from: { $ref: '/Address' },
|
||||
to: { $ref: '/Address' },
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user