From 36ad373f03f623b463a689ea50f6c72c2534a3b2 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Tue, 1 Sep 2020 16:55:04 -0400 Subject: [PATCH] `@0x/utils`: Fix `StakingErrors.ExchangeManagerError` incorrect param name --- .../utils/src/revert_errors/staking/staking_revert_errors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/utils/src/revert_errors/staking/staking_revert_errors.ts b/packages/utils/src/revert_errors/staking/staking_revert_errors.ts index 7cd5a2acd2..82a3816c3b 100644 --- a/packages/utils/src/revert_errors/staking/staking_revert_errors.ts +++ b/packages/utils/src/revert_errors/staking/staking_revert_errors.ts @@ -40,9 +40,9 @@ export class OnlyCallableByExchangeError extends RevertError { } export class ExchangeManagerError extends RevertError { - constructor(error?: ExchangeManagerErrorCodes, senderAddress?: string) { + constructor(errorCode?: ExchangeManagerErrorCodes, senderAddress?: string) { super('ExchangeManagerError', 'ExchangeManagerError(uint8 errorCode, address senderAddress)', { - error, + errorCode, senderAddress, }); }