Add TransactionGasPriceError rich revert class
This commit is contained in:
parent
f41a29ce55
commit
f32732db1c
@ -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 {
|
||||
constructor(
|
||||
error?: IncompleteFillErrorCode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user