Bug fix for handling quota used error when Revert.
@@ -195,8 +195,10 @@ impl ExecutedBlock {
_ => Some(ReceiptError::Internal),
});
- let tx_quota_used =
- if receipt_error.is_some() && receipt_error != Some(ReceiptError::Internal) {
+ let tx_quota_used = if receipt_error.is_some()
+ && receipt_error != Some(ReceiptError::Internal)
+ && receipt_error != Some(ReceiptError::Reverted)
+ {
t.gas
} else {
ret.quota_used
