From 223aa04424ed98a536d2e56960e8087759eec692 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Wed, 15 Apr 2020 13:11:24 -0400 Subject: [PATCH] `@0x/utils`: Change `SimpleFunctionRegistry` `NoRollbackHistoryError` to `NotInRollbackHistoryError`. --- .../zero-ex/simple_function_registry_revert_errors.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/utils/src/revert_errors/zero-ex/simple_function_registry_revert_errors.ts b/packages/utils/src/revert_errors/zero-ex/simple_function_registry_revert_errors.ts index 9e9897fdfd..1aa85df664 100644 --- a/packages/utils/src/revert_errors/zero-ex/simple_function_registry_revert_errors.ts +++ b/packages/utils/src/revert_errors/zero-ex/simple_function_registry_revert_errors.ts @@ -1,15 +1,16 @@ import { RevertError } from '../../revert_error'; // tslint:disable:max-classes-per-file -export class NoRollbackHistoryError extends RevertError { - constructor(selector?: string) { - super('NoRollbackHistoryError', 'NoRollbackHistoryError(bytes4 selector)', { +export class NotInRollbackHistoryError extends RevertError { + constructor(selector?: string, targetImpl?: string) { + super('NotInRollbackHistoryError', 'NotInRollbackHistoryError(bytes4 selector, address targetImpl)', { selector, + targetImpl, }); } } -const types = [NoRollbackHistoryError]; +const types = [NotInRollbackHistoryError]; // Register the types we've defined. for (const type of types) {