Add TransactionGasPriceError rich revert class

This commit is contained in:
Amir Bandeali 2019-08-20 20:02:03 -07:00
parent f41a29ce55
commit f32732db1c

View File

@ -213,6 +213,20 @@ export class TransactionExecutionError extends RevertError {
} }
} }
export class TransactionGasPriceError extends RevertError {
constructor(transactionHash?: string, actualGasPrice?: BigNumber, requiredGasPrice?: BigNumber) {
super(
'TransactionGasPriceError',
'TransactionGasPriceError(bytes32 transactionHash, uint256 actualGasPrice, uint256 requiredGasPrice)',
{
transactionHash,
actualGasPrice,
requiredGasPrice,
},
);
}
}
export class IncompleteFillError extends RevertError { export class IncompleteFillError extends RevertError {
constructor( constructor(
error?: IncompleteFillErrorCode, error?: IncompleteFillErrorCode,