diff --git a/src/v07/EntryPoint.sol b/src/v07/EntryPoint.sol index 72e6a08..01b9ea9 100644 --- a/src/v07/EntryPoint.sol +++ b/src/v07/EntryPoint.sol @@ -719,22 +719,25 @@ contract EntryPoint is { } catch { - emit PostOpRevertReason( - opInfo.userOpHash, - opInfo.mUserOp.sender, - opInfo.mUserOp.nonce, - Exec.getReturnData(REVERT_REASON_MAX_LEN) - ); - actualGas = preGas - gasleft() + opInfo.preOpGas; - ( - actualGasCost, - paymasterPostOpGasLimit - ) = _postExecution( - IPaymaster.PostOpMode.postOpReverted, - opInfo, - context, - actualGas + revert FailedOpWithRevert( + 0, "AA50 postOp reverted", Exec.getReturnData(REVERT_REASON_MAX_LEN) ); + //emit PostOpRevertReason( + // opInfo.userOpHash, + // opInfo.mUserOp.sender, + // opInfo.mUserOp.nonce, + // Exec.getReturnData(REVERT_REASON_MAX_LEN) + //); + //actualGas = preGas - gasleft() + opInfo.preOpGas; + //( + // actualGasCost, + // paymasterPostOpGasLimit + //) = _postExecution( + // IPaymaster.PostOpMode.postOpReverted, + // opInfo, + // context, + // actualGas + //); } paymasterPostOpGasLimit = remainingGas - gasleft(); }