@0x/utils: Change SimpleFunctionRegistry NoRollbackHistoryError to NotInRollbackHistoryError.

This commit is contained in:
Lawrence Forman
2020-04-15 13:11:24 -04:00
parent e53248cca6
commit 223aa04424

View File

@@ -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) {