Threats in v0.6
Many services are still using v0.6 of EntryPoint. This page explains the potential threats that may arise from v0.6.
postOp with postOpReverted mode
// https://github.com/eth-infinitism/account-abstraction/blob/6ac12fe80ad7ee6fa622fc5cd825eb11415e6f4e/contracts/samples/TokenPaymaster.sol
function _postOp(PostOpMode mode, bytes calldata context, uint256 actualGasCost) internal override {
if (mode == PostOpMode.postOpReverted) {
return;
}
...
...
refillEntryPointDeposit(_cachedPrice);
}function _postOp(PostOpMode mode, bytes calldata context, uint256 actualGasCost) internal override {
...
...
refillEntryPointDeposit(_cachedPrice);
}Last updated