Add PoolNotFinalizedError rich revert
This commit is contained in:
@@ -178,6 +178,12 @@ export class PreviousEpochNotFinalizedError extends RevertError {
|
||||
}
|
||||
}
|
||||
|
||||
export class PoolNotFinalizedError extends RevertError {
|
||||
constructor(poolId: string, epoch: BigNumber | number | string) {
|
||||
super('PoolNotFinalizedError', 'PoolNotFinalizedError(bytes32 poolId, uint256 epoch)', { poolId, epoch });
|
||||
}
|
||||
}
|
||||
|
||||
const types = [
|
||||
BlockTimestampTooLowError,
|
||||
ExchangeManagerError,
|
||||
@@ -195,6 +201,7 @@ const types = [
|
||||
PoolExistenceError,
|
||||
PreviousEpochNotFinalizedError,
|
||||
ProxyDestinationCannotBeNilError,
|
||||
PoolNotFinalizedError,
|
||||
];
|
||||
|
||||
// Register the types we've defined.
|
||||
|
Reference in New Issue
Block a user