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 = {
|
export const callDataSchema = {
|
||||||
id: '/TxData',
|
id: '/CallData',
|
||||||
properties: {
|
properties: {
|
||||||
from: { $ref: '/Address' },
|
from: { $ref: '/Address' },
|
||||||
to: { $ref: '/Address' },
|
to: { $ref: '/Address' },
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const crypto = {
|
|||||||
argTypes.push('address');
|
argTypes.push('address');
|
||||||
} else if (_.isString(arg)) {
|
} else if (_.isString(arg)) {
|
||||||
argTypes.push('string');
|
argTypes.push('string');
|
||||||
} else if (_.isBuffer(arg)) {
|
} else if (_.isBuffer(arg) || _.isTypedArray(arg)) {
|
||||||
argTypes.push('bytes');
|
argTypes.push('bytes');
|
||||||
} else if (_.isBoolean(arg)) {
|
} else if (_.isBoolean(arg)) {
|
||||||
argTypes.push('bool');
|
argTypes.push('bool');
|
||||||
|
|||||||
Reference in New Issue
Block a user