replace abi.encodeWithSelector calls with bytes constant + other nits

This commit is contained in:
Michael Zhu
2019-08-26 16:58:56 -07:00
parent 078b1af04e
commit 9b957524a5
4 changed files with 23 additions and 25 deletions

View File

@@ -157,15 +157,15 @@ export class OnlyCallableByStakingContractError extends RevertError {
}
}
export class OnlyCallableInCatastrophicFailureError extends RevertError {
export class OnlyCallableIfInCatastrophicFailureError extends RevertError {
constructor() {
super('OnlyCallableInCatastrophicFailureError', 'OnlyCallableInCatastrophicFailureError()', {});
super('OnlyCallableIfInCatastrophicFailureError', 'OnlyCallableIfInCatastrophicFailureError()', {});
}
}
export class OnlyCallableNotInCatastrophicFailureError extends RevertError {
export class OnlyCallableIfNotInCatastrophicFailureError extends RevertError {
constructor() {
super('OnlyCallableNotInCatastrophicFailureError', 'OnlyCallableNotInCatastrophicFailureError()', {});
super('OnlyCallableIfNotInCatastrophicFailureError', 'OnlyCallableIfNotInCatastrophicFailureError()', {});
}
}
@@ -215,8 +215,8 @@ const types = [
WithdrawAmountExceedsMemberBalanceError,
BlockTimestampTooLowError,
OnlyCallableByStakingContractError,
OnlyCallableInCatastrophicFailureError,
OnlyCallableNotInCatastrophicFailureError,
OnlyCallableIfInCatastrophicFailureError,
OnlyCallableIfNotInCatastrophicFailureError,
AmountExceedsBalanceOfPoolError,
OperatorShareMustBeBetween0And100Error,
PoolAlreadyExistsError,