Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/utils: Update InvalidTransformDataError.
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed May 28, 2020
1 parent a7ce72c commit bf84409
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ export class InvalidExecutionContextError extends RevertError {
}
}

export enum InvalidTransformDataErrorCode {
InvalidTokens,
InvalidArrayLength,
}

export class InvalidTransformDataError extends RevertError {
constructor(transformData?: string) {
super('InvalidTransformDataError', 'InvalidTransformDataError(bytes transformData)', {
constructor(errorCode?: InvalidTransformDataErrorCode, transformData?: string) {
super('InvalidTransformDataError', 'InvalidTransformDataError(uint8 errorCode, bytes transformData)', {
errorCode,
transformData,
});
}
Expand Down

0 comments on commit bf84409

Please sign in to comment.