diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-04-25 02:24:55 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-27 01:33:37 +0800 |
commit | 0e0a46f373e076843fd4118cdafb325fb754141a (patch) | |
tree | 65c012961c6fa72dd258a2e0e0e671a0a6dc64a6 /packages/contracts/src/utils/crypto.ts | |
parent | 732202fe8e4f3eb1847515a0c3f8f2d068d35baf (diff) | |
download | dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar.gz dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar.bz2 dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar.lz dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar.xz dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.tar.zst dexon-sol-tools-0e0a46f373e076843fd4118cdafb325fb754141a.zip |
Update tests and utils
Diffstat (limited to 'packages/contracts/src/utils/crypto.ts')
-rw-r--r-- | packages/contracts/src/utils/crypto.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/contracts/src/utils/crypto.ts b/packages/contracts/src/utils/crypto.ts index 222cb7cca..85a37122a 100644 --- a/packages/contracts/src/utils/crypto.ts +++ b/packages/contracts/src/utils/crypto.ts @@ -29,6 +29,8 @@ export const crypto = { args[i] = new BN(arg.toString(10), 10); } else if (ethUtil.isValidAddress(arg)) { argTypes.push('address'); + } else if (arg instanceof Buffer) { + argTypes.push('bytes'); } else if (_.isString(arg)) { argTypes.push('string'); } else if (_.isBuffer(arg)) { |