aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils/crypto.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/src/utils/crypto.ts')
-rw-r--r--packages/contracts/src/utils/crypto.ts2
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)) {